diff --git a/radio/src/gui/menu_model.cpp b/radio/src/gui/menu_model.cpp index 8d271aa56..e1b9f37dc 100644 --- a/radio/src/gui/menu_model.cpp +++ b/radio/src/gui/menu_model.cpp @@ -5181,7 +5181,7 @@ void menuModelCustomScriptOne(uint8_t event) if (i == ITEM_MODEL_CUSTOMSCRIPT_FILE) { lcd_putsLeft(y, "Script"); - if (ZEXIST(sd.file) > 0) + if (ZEXIST(sd.file)) lcd_putsnAtt(SCRIPT_ONE_2ND_COLUMN_POS, y, sd.file, sizeof(sd.file), attr); else lcd_putsiAtt(SCRIPT_ONE_2ND_COLUMN_POS, y, STR_VCSWFUNC, 0, attr); diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 7ac9366f7..c84ea8a85 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -3253,7 +3253,7 @@ void evalFunctions() bool active = getSwitch(swtch); if (HAS_ENABLE_PARAM(CFN_FUNC(sd))) { - active &= CFN_ACTIVE(sd); + active &= (bool)CFN_ACTIVE(sd); } if (active || IS_PLAY_BOTH_FUNC(CFN_FUNC(sd))) {