1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-24 16:55:15 +03:00
This commit is contained in:
bsongis 2014-04-02 18:59:09 +02:00
parent fae5686258
commit 1d5a33b981

View file

@ -727,7 +727,7 @@ int main()
if (event == EVT_KEY_FIRST(BOOT_KEY_DOWN) || event == EVT_KEY_FIRST(BOOT_KEY_UP)) { if (event == EVT_KEY_FIRST(BOOT_KEY_DOWN) || event == EVT_KEY_FIRST(BOOT_KEY_UP)) {
vpos = (vpos+1) & 0x01; vpos = (vpos+1) & 0x01;
} }
else if (event == EVT_KEY_FIRST(BOOT_KEY_MENU)) { else if (event == EVT_KEY_BREAK(BOOT_KEY_MENU)) {
if (vpos == 0) if (vpos == 0)
state = ST_FLASH_MENU; state = ST_FLASH_MENU;
else else
@ -840,12 +840,12 @@ int main()
} }
} }
#endif #endif
else if (event == EVT_KEY_FIRST(BOOT_KEY_MENU)) { else if (event == EVT_KEY_BREAK(BOOT_KEY_MENU)) {
// Select file to flash // Select file to flash
state = ST_FLASH_CHECK; state = ST_FLASH_CHECK;
Valid = 0; Valid = 0;
} }
else if (event == EVT_KEY_FIRST(BOOT_KEY_EXIT)) { else if (event == EVT_KEY_BREAK(BOOT_KEY_EXIT)) {
state = ST_START; state = ST_START;
vpos = 0; vpos = 0;
} }