[Taranis] EEPROM savings

This commit is contained in:
Bertrand Songis
2016-03-11 18:22:16 +01:00
parent 2e57549982
commit 44d4e93ad1
7 changed files with 83 additions and 53 deletions
+5
View File
@@ -71,7 +71,12 @@ const pm_char * openLogs()
}
if (len == 0) {
#if defined(EEPROM)
uint8_t num = g_eeGeneral.currModel + 1;
#else
// TODO
uint8_t num = 1;
#endif
strcpy_P(&filename[sizeof(LOGS_PATH)], STR_MODEL);
filename[sizeof(LOGS_PATH) + PSIZE(TR_MODEL)] = (char)((num / 10) + '0');
filename[sizeof(LOGS_PATH) + PSIZE(TR_MODEL) + 1] = (char)((num % 10) + '0');