feat: iFlight Commando 14 support (#7494)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
Peter Feerick
parent
44b98d5bfd
commit
640fc189e7
@@ -123,7 +123,6 @@ void lcdInitDisplayDriver()
|
||||
|
||||
// Init hardware LCD driver
|
||||
lcdInit();
|
||||
backlightInit();
|
||||
|
||||
init_lvgl_disp_drv();
|
||||
|
||||
@@ -144,6 +143,12 @@ void lcdInitDisplayDriver()
|
||||
lv_draw_ctx_t* draw_ctx = disp_drv.draw_ctx;
|
||||
lcd->setDrawCtx(draw_ctx);
|
||||
lcdFront->setDrawCtx(draw_ctx);
|
||||
|
||||
#if defined(LCD_BACKLIGHT_INIT_DELAY_MS)
|
||||
delay_ms(LCD_BACKLIGHT_INIT_DELAY_MS);
|
||||
#endif
|
||||
|
||||
backlightInit();
|
||||
}
|
||||
|
||||
void lcdClear() { lcd->clear(); }
|
||||
|
||||
@@ -809,7 +809,7 @@ const static SetupLineDef setupLines[] = {
|
||||
new ToggleSwitch(parent, {x, y, 0, 0}, GET_SET_INVERTED(g_eeGeneral.dontPlayHello));
|
||||
}
|
||||
},
|
||||
#if defined(PWR_BUTTON_PRESS)
|
||||
#if defined(PWR_BUTTON_PRESS) && !defined(PWR_BUTTON_MANAGED)
|
||||
{
|
||||
// Pwr Off Delay
|
||||
STR_DEF(STR_PWR_OFF_DELAY),
|
||||
@@ -823,7 +823,8 @@ const static SetupLineDef setupLines[] = {
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
#endif
|
||||
#if defined(PWR_BUTTON_PRESS)
|
||||
// Pwr Off If Inactive
|
||||
{
|
||||
STR_DEF(STR_PWR_AUTO_OFF),
|
||||
|
||||
@@ -960,6 +960,19 @@ bool isExternalModuleAvailable(int moduleType)
|
||||
return false;
|
||||
#endif
|
||||
|
||||
#if defined(EXTMODULE_USART) && !defined(EXTMODULE_TIMER)
|
||||
// Serial external bay with no PPM timer (e.g. C14, S.PORT-only): restrict to
|
||||
// the protocols that run over the half-duplex telemetry line.
|
||||
switch (moduleType) {
|
||||
case MODULE_TYPE_NONE:
|
||||
case MODULE_TYPE_CROSSFIRE:
|
||||
case MODULE_TYPE_GHOST:
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(HARDWARE_EXTERNAL_MODULE_SIZE_SML)
|
||||
if (isModuleTypeR9MLite(moduleType) || moduleType == MODULE_TYPE_XJT_LITE_PXX2)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user