mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Merge pull request #1355 from opentx/projectkk2glider/issue_1283
Fixes #1283 - EEPROM backup/restore - unexpectedShutdown set
This commit is contained in:
commit
751027b4ad
1 changed files with 8 additions and 0 deletions
|
@ -726,6 +726,9 @@ void backupEeprom()
|
||||||
lcd_rect(3, 6*FH+4, 204, 7);
|
lcd_rect(3, 6*FH+4, 204, 7);
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
|
|
||||||
|
//reset unexpectedShutdown to prevent warning when user restores EEPROM backup
|
||||||
|
g_eeGeneral.unexpectedShutdown = 0;
|
||||||
|
eeDirty(EE_GENERAL);
|
||||||
eeCheck(true);
|
eeCheck(true);
|
||||||
|
|
||||||
// create the directory if needed...
|
// create the directory if needed...
|
||||||
|
@ -760,6 +763,11 @@ void backupEeprom()
|
||||||
}
|
}
|
||||||
|
|
||||||
f_close(&file);
|
f_close(&file);
|
||||||
|
|
||||||
|
//set back unexpectedShutdown
|
||||||
|
g_eeGeneral.unexpectedShutdown = 1;
|
||||||
|
eeDirty(EE_GENERAL);
|
||||||
|
eeCheck(true);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue