[Horus] Emergency mode + some simu refactoring to avoid duplicated code

This commit is contained in:
Bertrand Songis
2016-03-09 19:22:27 +01:00
parent 10d0c56b08
commit 473e69b3c3
9 changed files with 127 additions and 143 deletions
+9
View File
@@ -338,6 +338,15 @@ void perMain()
if (sticks_evt) evt = sticks_evt;
#endif
#if defined(RAMBACKUP)
if (unexpectedShutdown) {
lcd->clear();
lcdDrawText(LCD_W/2, LCD_H/2-20, "EMERGENCY MODE", DBLSIZE|CENTERED|TEXT_BGCOLOR);
lcdRefresh();
return;
}
#endif
#if defined(USB_MASS_STORAGE)
if (usbPlugged()) {
// disable access to menus