Johhny Firmware sync
This commit is contained in:
parent
1224705edc
commit
c83b1833bc
7 changed files with 102 additions and 15 deletions
Firmware
|
@ -294,7 +294,7 @@ bool SdBaseFile::getFilename(char* name) {
|
|||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
void SdBaseFile::getpos(fpos_t* pos) {
|
||||
void SdBaseFile::getpos(filepos_t* pos) {
|
||||
pos->position = curPosition_;
|
||||
pos->cluster = curCluster_;
|
||||
}
|
||||
|
@ -925,7 +925,7 @@ bool SdBaseFile::openRoot(SdVolume* vol) {
|
|||
* \return The byte if no error and not at eof else -1;
|
||||
*/
|
||||
int SdBaseFile::peek() {
|
||||
fpos_t pos;
|
||||
filepos_t pos;
|
||||
getpos(&pos);
|
||||
int c = read();
|
||||
if (c >= 0) setpos(&pos);
|
||||
|
@ -1492,7 +1492,7 @@ bool SdBaseFile::seekSet(uint32_t pos) {
|
|||
return false;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
void SdBaseFile::setpos(fpos_t* pos) {
|
||||
void SdBaseFile::setpos(filepos_t* pos) {
|
||||
curPosition_ = pos->position;
|
||||
curCluster_ = pos->cluster;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue