From fd855d8a8c8b20bb396b4219d3d8c4194dd57c2c Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 20 Feb 2014 07:56:13 +0100 Subject: [PATCH] VC++ Warning removed --- radio/src/gui/menu_model.cpp | 2 +- radio/src/opentx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))) {