Module options fix (freeze when no option available)

This commit is contained in:
Bertrand Songis
2019-04-29 00:41:14 +02:00
parent 32639c0c2a
commit 9f1238ca38
2 changed files with 61 additions and 52 deletions
-1
View File
@@ -1366,7 +1366,6 @@ void menuModelSetup(event_t event)
lcdDrawText(MODEL_SETUP_2ND_COLUMN, y, STR_SET, attr);
if (event == EVT_KEY_BREAK(KEY_ENTER) && attr) {
g_moduleIdx = CURRENT_MODULE_EDITED(k);
memclear(&reusableBuffer.hardwareAndSettings, sizeof(reusableBuffer.hardwareAndSettings));
pushMenu(menuModelModuleOptions);
}
break;