mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-24 16:55:15 +03:00
Fixes #918
This commit is contained in:
parent
fae5686258
commit
1d5a33b981
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue