Cosmetics

This commit is contained in:
Bertrand Songis
2019-08-26 15:27:24 +02:00
parent 1f08f2c315
commit 042e702cda
2 changed files with 8 additions and 7 deletions
+5 -4
View File
@@ -366,13 +366,14 @@ extern uint8_t channelOrder(uint8_t x);
#define THRCHK_DEADBAND 16 #define THRCHK_DEADBAND 16
inline bool SPLASH_NEEDED()
{
#if defined(COLORLCD) #if defined(COLORLCD)
#define SPLASH_NEEDED() (false) return false;
#elif defined(PCBTARANIS)
#define SPLASH_NEEDED() (g_eeGeneral.splashMode != 3)
#else #else
#define SPLASH_NEEDED() (g_model.moduleData[EXTERNAL_MODULE].type != MODULE_TYPE_DSM2 && !g_eeGeneral.splashMode) return g_eeGeneral.splashMode != 3;
#endif #endif
}
#if defined(PCBHORUS) #if defined(PCBHORUS)
#define SPLASH_TIMEOUT 0 /* we use the splash duration to load stuff from the SD */ #define SPLASH_TIMEOUT 0 /* we use the splash duration to load stuff from the SD */
+1 -1
View File
@@ -125,7 +125,7 @@ void storageEraseAll(bool warn)
ALERT(STR_STORAGE_WARNING, STR_BAD_RADIO_DATA, AU_BAD_RADIODATA); ALERT(STR_STORAGE_WARNING, STR_BAD_RADIO_DATA, AU_BAD_RADIODATA);
} }
RAISE_ALERT(STR_STORAGE_WARNING, STR_STORAGE_FORMAT, NULL, AU_NONE); RAISE_ALERT(STR_STORAGE_WARNING, STR_STORAGE_FORMAT, nullptr, AU_NONE);
storageFormat(); storageFormat();
storageDirty(EE_GENERAL|EE_MODEL); storageDirty(EE_GENERAL|EE_MODEL);