define away COLORLCD specifics
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
static void drawProgressScreen(const char* filename, int progress, int total)
|
static void drawProgressScreen(const char* filename, int progress, int total)
|
||||||
{
|
{
|
||||||
|
#if defined(COLORLCD)
|
||||||
OpenTxTheme* l_theme = static_cast<OpenTxTheme*>(theme);
|
OpenTxTheme* l_theme = static_cast<OpenTxTheme*>(theme);
|
||||||
|
|
||||||
lcd->reset();
|
lcd->reset();
|
||||||
@@ -46,18 +47,23 @@ static void drawProgressScreen(const char* filename, int progress, int total)
|
|||||||
|
|
||||||
WDG_RESET();
|
WDG_RESET();
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
|
#else
|
||||||
|
// TODO: BW progress screen
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void convertRadioData(int version)
|
void convertRadioData(int version)
|
||||||
{
|
{
|
||||||
TRACE("convertRadioData(%d)", version);
|
TRACE("convertRadioData(%d)", version);
|
||||||
|
|
||||||
|
#if defined(COLORLCD)
|
||||||
// the theme has not been loaded before
|
// the theme has not been loaded before
|
||||||
static_cast<OpenTxTheme*>(theme)->load();
|
static_cast<OpenTxTheme*>(theme)->load();
|
||||||
|
|
||||||
// Init backlight mode before entering alert screens
|
// Init backlight mode before entering alert screens
|
||||||
requiredBacklightBright = BACKLIGHT_FORCED_ON;
|
requiredBacklightBright = BACKLIGHT_FORCED_ON;
|
||||||
g_eeGeneral.blOffBright = 20;
|
g_eeGeneral.blOffBright = 20;
|
||||||
|
#endif
|
||||||
|
|
||||||
RAISE_ALERT(STR_STORAGE_WARNING, STR_SDCARD_CONVERSION_REQUIRE, NULL,
|
RAISE_ALERT(STR_STORAGE_WARNING, STR_SDCARD_CONVERSION_REQUIRE, NULL,
|
||||||
AU_NONE);
|
AU_NONE);
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ void storageReadAll()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(COLORLCD)
|
||||||
void checkModelIdUnique(uint8_t index, uint8_t module)
|
void checkModelIdUnique(uint8_t index, uint8_t module)
|
||||||
{
|
{
|
||||||
if (isModuleXJTD8(module))
|
if (isModuleXJTD8(module))
|
||||||
@@ -203,3 +204,5 @@ void checkModelIdUnique(uint8_t index, uint8_t module)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user