Merge pull request #428 from EdgeTX/safetyChecksAndHome

Run safety checks on model select and exit menu
This commit is contained in:
Peter Feerick
2021-07-19 11:02:46 +10:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -245,7 +245,8 @@ class ModelCategoryPageBody : public FormWindow
modelslist.setCurrentModel(model);
modelslist.setCurrentCategory(category);
update();
this->onEvent(EVT_KEY_FIRST(KEY_EXIT));
checkAll();
});
}
menu->addLine(STR_CREATE_MODEL, getCreateModelAction());
+4
View File
@@ -285,6 +285,8 @@ void enablePulsesExternalModule(uint8_t protocol)
extmoduleSerialStart();
mixerSchedulerSetPeriod(EXTERNAL_MODULE, MULTIMODULE_PERIOD);
#endif
getMultiModuleStatus(EXTERNAL_MODULE).failsafeChecked = false;
getMultiModuleStatus(EXTERNAL_MODULE).flags = 0;
break;
#endif
@@ -491,6 +493,8 @@ static void enablePulsesInternalModule(uint8_t protocol)
intmodulePulsesData.multi.initFrame();
intmoduleSerialStart(MULTIMODULE_BAUDRATE, true, USART_Parity_Even, USART_StopBits_2, USART_WordLength_9b);
mixerSchedulerSetPeriod(INTERNAL_MODULE, MULTIMODULE_PERIOD);
getMultiModuleStatus(INTERNAL_MODULE).failsafeChecked = false;
getMultiModuleStatus(INTERNAL_MODULE).flags = 0;
break;
#endif