mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
[Horus] Refactoring for the new fatal errors
This commit is contained in:
parent
855814655e
commit
82b9ecc155
25 changed files with 165 additions and 75 deletions
|
@ -406,7 +406,9 @@ void perMain()
|
|||
doLoopCommonActions();
|
||||
#if defined(NAVIGATION_STICKS)
|
||||
uint8_t sticks_evt = getSticksNavigationEvent();
|
||||
if (sticks_evt) evt = sticks_evt;
|
||||
if (sticks_evt) {
|
||||
evt = sticks_evt;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(RAMBACKUP)
|
||||
|
@ -419,6 +421,7 @@ void perMain()
|
|||
#endif
|
||||
|
||||
#if !defined(EEPROM)
|
||||
// In case the SD card is removed during the session
|
||||
if (!SD_CARD_PRESENT()) {
|
||||
lcd->clear();
|
||||
lcdDrawText(LCD_W/2, LCD_H/2-20, STR_NO_SDCARD, DBLSIZE|CENTERED|TEXT_BGCOLOR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue