From 846d0a6114423261630c941fb976465ce102ae09 Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 10 Jul 2012 19:38:18 +0000 Subject: [PATCH] Reboot when EEPROM overflow in some cases --- src/eeprom_avr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eeprom_avr.cpp b/src/eeprom_avr.cpp index 6a05866b3..acf81f7f2 100644 --- a/src/eeprom_avr.cpp +++ b/src/eeprom_avr.cpp @@ -481,9 +481,9 @@ void RlcFile::nextWriteStep() m_write_len = 0; m_cur_rlc_len = 0; } - - if (!s_sync_write) + else if (!s_sync_write) { nextRlcWriteStep(); + } } void RlcFile::create(uint8_t i_fileId, uint8_t typ, uint8_t sync_write)