Many MODELSEL screen bugs solved
This commit is contained in:
+4
-8
@@ -201,20 +201,16 @@ bool EFile::exists(uint8_t i_fileId)
|
||||
return eeFs.files[i_fileId].startBlk;
|
||||
}
|
||||
|
||||
/*
|
||||
* swap two files in eeprom
|
||||
* called in sync AND async mode as it is a single write operation
|
||||
*/
|
||||
void EFile::swap(uint8_t i_fileId1, uint8_t i_fileId2)
|
||||
{
|
||||
#ifdef EEPROM_ASYNC_WRITE
|
||||
s_sync_write = true;
|
||||
#endif
|
||||
|
||||
DirEnt tmp = eeFs.files[i_fileId1];
|
||||
eeFs.files[i_fileId1] = eeFs.files[i_fileId2];
|
||||
eeFs.files[i_fileId2] = tmp;
|
||||
EeFsFlush();
|
||||
|
||||
#ifdef EEPROM_ASYNC_WRITE
|
||||
s_sync_write = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void EFile::rm(uint8_t i_fileId)
|
||||
|
||||
Reference in New Issue
Block a user