fix(color): Scroll order for 'FlySky' module options (#3479)

* Fix scroll order for module options when 'FlySky' module type selected.
Fix simulator crash issues related to FlySky module.

* Fix more simulator crashes
This commit is contained in:
philmoz
2023-04-18 11:01:26 +10:00
committed by GitHub
parent 95cfe47ad8
commit 54e0d350e8
5 changed files with 147 additions and 55 deletions
+4
View File
@@ -857,6 +857,10 @@ void ProtoState::resetConfig(uint8_t version)
void ProtoState::applyConfigFromModel()
{
uint8_t version = 0;
#if defined(SIMU)
// TODO: work out why this is not initialised in some cases
if (moduleData == nullptr) return;
#endif
if (moduleData->afhds3.phyMode >= ROUTINE_FLCR1_18CH) {
version = 1;
}