[NV14] Fix ST7796S LCD controller detection and colors, show LCD controller type on version screen (#1294)
show LCD controller type on NV14 radio version screen fix ST7796S LCD controller detection fix ST7796S driven displays to show correct colors fix NV14 lcd_driver.cpp compiler warning
This commit is contained in:
@@ -207,6 +207,10 @@ RadioVersionPage::RadioVersionPage():
|
||||
}
|
||||
|
||||
extern uint32_t NV14internalModuleFwVersion;
|
||||
#if defined(PCBNV14)
|
||||
extern const char* boardLcdType;
|
||||
#endif
|
||||
|
||||
void RadioVersionPage::build(FormWindow * window)
|
||||
{
|
||||
FormGridLayout grid;
|
||||
@@ -238,6 +242,12 @@ void RadioVersionPage::build(FormWindow * window)
|
||||
auto options = new OptionsText(window, grid.getFieldSlot(1,0));
|
||||
grid.nextLine(options->height() + 4);
|
||||
|
||||
#if defined(PCBNV14) && !defined(SIMU)
|
||||
new StaticText(window, grid.getLabelSlot(), "LCD:");
|
||||
new StaticText(window, grid.getFieldSlot(), boardLcdType);
|
||||
grid.nextLine();
|
||||
#endif
|
||||
|
||||
#if defined(AFHDS2)
|
||||
new StaticText(window, grid.getLabelSlot(), "RF FW:");
|
||||
sprintf(reusableBuffer.moduleSetup.msg, "%d.%d.%d", (int)((NV14internalModuleFwVersion >> 16) & 0xFF), (int)((NV14internalModuleFwVersion >> 8) & 0xFF), (int)(NV14internalModuleFwVersion & 0xFF));
|
||||
|
||||
Reference in New Issue
Block a user