Turn off ext module while editing type also on 128 and 212

This commit is contained in:
3djc
2019-09-30 11:26:02 +02:00
parent 234432f463
commit 97262ec0bf
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -844,6 +844,13 @@ void menuModelSetup(event_t event)
lcdDrawTextAtIndex(lcdNextPos + 3, y, STR_MULTI_PROTOCOLS, multi_rfProto, menuHorizontalPosition==1 ? attr : 0);
}
#endif
if (attr && menuHorizontalPosition == 0 && moduleIdx == EXTERNAL_MODULE) {
if (s_editMode > 0)
EXTERNAL_MODULE_OFF();
else
if(g_model.moduleData[EXTERNAL_MODULE].type != MODULE_TYPE_NONE)
EXTERNAL_MODULE_ON();
}
if (attr) {
if (s_editMode > 0) {
switch (menuHorizontalPosition) {
+7
View File
@@ -830,6 +830,13 @@ void menuModelSetup(event_t event)
}
}
#endif
if (attr && menuHorizontalPosition == 0 && moduleIdx == EXTERNAL_MODULE) {
if (s_editMode > 0)
EXTERNAL_MODULE_OFF();
else
if(g_model.moduleData[EXTERNAL_MODULE].type != MODULE_TYPE_NONE)
EXTERNAL_MODULE_ON();
}
if (attr) {
if (s_editMode > 0) {
switch (menuHorizontalPosition) {