1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

[Horus] #3599 - Another emergency message when there is no SD

This commit is contained in:
Bertrand Songis 2016-06-15 19:59:18 +02:00
parent de52ee513c
commit d51e86b669
2 changed files with 18 additions and 11 deletions

View file

@ -424,6 +424,15 @@ void perMain()
}
#endif
#if !defined(EEPROM)
if (!SD_CARD_PRESENT()) {
lcd->clear();
lcdDrawText(LCD_W/2, LCD_H/2-20, STR_NO_SDCARD, DBLSIZE|CENTERED|TEXT_BGCOLOR);
lcdRefresh();
return;
}
#endif
#if defined(USB_MASS_STORAGE)
if (usbPlugged()) {
// disable access to menus