Turn off ext module while editing type also on 128 and 212
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user