Many MODELSEL screen bugs solved

This commit is contained in:
bsongis
2011-10-09 12:16:48 +00:00
parent ac45e5bfac
commit 8312f5d20e
4 changed files with 30 additions and 38 deletions
+4 -8
View File
@@ -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)