Hopefully the last async eeprom write bug solved (missing wdt_reset)... Clear Mixes not working

This commit is contained in:
bsongis
2011-09-27 10:06:00 +00:00
parent 807e76f112
commit dc0b387b6e
11 changed files with 70 additions and 48 deletions
+6 -5
View File
@@ -571,12 +571,13 @@ void RlcFile::nextRlcWriteStep()
void RlcFile::flush()
{
while (eeprom_buffer_size > 0);
while (eeprom_buffer_size > 0) wdt_reset();
s_sync_write = true;
while (theFile.m_write_len && !s_write_err)
theFile.nextWriteStep();
while (theFile.isWriting() && !s_write_err)
theFile.nextRlcWriteStep();
while (m_write_len && !s_write_err)
nextWriteStep();
while (isWriting() && !s_write_err)
nextRlcWriteStep();
s_sync_write = false;
}