mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Cosmetics
This commit is contained in:
parent
1f08f2c315
commit
042e702cda
2 changed files with 8 additions and 7 deletions
|
@ -366,13 +366,14 @@ extern uint8_t channelOrder(uint8_t x);
|
|||
|
||||
#define THRCHK_DEADBAND 16
|
||||
|
||||
inline bool SPLASH_NEEDED()
|
||||
{
|
||||
#if defined(COLORLCD)
|
||||
#define SPLASH_NEEDED() (false)
|
||||
#elif defined(PCBTARANIS)
|
||||
#define SPLASH_NEEDED() (g_eeGeneral.splashMode != 3)
|
||||
return false;
|
||||
#else
|
||||
#define SPLASH_NEEDED() (g_model.moduleData[EXTERNAL_MODULE].type != MODULE_TYPE_DSM2 && !g_eeGeneral.splashMode)
|
||||
return g_eeGeneral.splashMode != 3;
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(PCBHORUS)
|
||||
#define SPLASH_TIMEOUT 0 /* we use the splash duration to load stuff from the SD */
|
||||
|
|
|
@ -125,7 +125,7 @@ void storageEraseAll(bool warn)
|
|||
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();
|
||||
storageDirty(EE_GENERAL|EE_MODEL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue