1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 14:25:11 +03:00

VC++ Warning removed

This commit is contained in:
Bertrand Songis 2014-02-20 07:56:13 +01:00
parent 342d2cdb83
commit fd855d8a8c
2 changed files with 2 additions and 2 deletions

View file

@ -5181,7 +5181,7 @@ void menuModelCustomScriptOne(uint8_t event)
if (i == ITEM_MODEL_CUSTOMSCRIPT_FILE) { if (i == ITEM_MODEL_CUSTOMSCRIPT_FILE) {
lcd_putsLeft(y, "Script"); 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); lcd_putsnAtt(SCRIPT_ONE_2ND_COLUMN_POS, y, sd.file, sizeof(sd.file), attr);
else else
lcd_putsiAtt(SCRIPT_ONE_2ND_COLUMN_POS, y, STR_VCSWFUNC, 0, attr); lcd_putsiAtt(SCRIPT_ONE_2ND_COLUMN_POS, y, STR_VCSWFUNC, 0, attr);

View file

@ -3253,7 +3253,7 @@ void evalFunctions()
bool active = getSwitch(swtch); bool active = getSwitch(swtch);
if (HAS_ENABLE_PARAM(CFN_FUNC(sd))) { 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))) { if (active || IS_PLAY_BOTH_FUNC(CFN_FUNC(sd))) {