Skip to content

Commit 1a4facf

Browse files
authored
Merge pull request #135 from betaflight/134_xlite
added support for X-Lite
2 parents 9ebf05d + 018b271 commit 1a4facf

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/SCRIPTS/BF/events.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ return
55
minus = EVT_MINUS_FIRST,
66
plus = EVT_PLUS_FIRST,
77
pageDown = EVT_PAGEDN_FIRST,
8-
pageUp = EVT_PAGEUP_FIRST
8+
pageUp = EVT_PAGEUP_FIRST or EVT_LEFT_BREAK
99
},
1010
longPress = {
1111
enter = EVT_ENTER_LONG,
12-
menu = EVT_MENU_LONG,
12+
menu = EVT_MENU_LONG or EVT_RIGHT_LONG
1313
},
1414
repeatPress = {
1515
minus = EVT_MINUS_REPT,
@@ -18,12 +18,12 @@ return
1818
release = {
1919
enter = EVT_ENTER_BREAK,
2020
exit = EVT_EXIT_BREAK,
21-
menu = EVT_MENU_BREAK,
21+
menu = EVT_MENU_BREAK or EVT_RIGHT_BREAK,
2222
minus = EVT_MINUS_BREAK,
2323
plus = EVT_PLUS_BREAK
2424
},
2525
dial = {
26-
left = EVT_ROT_LEFT,
27-
right = EVT_ROT_RIGHT
26+
left = EVT_ROT_LEFT or EVT_UP_BREAK,
27+
right = EVT_ROT_RIGHT or EVT_DOWN_BREAK
2828
}
2929
}

src/SCRIPTS/BF/radios.lua

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ local supportedRadios =
2929
{
3030
["x7"] = supportedPlatforms.x7,
3131
["x7s"] = supportedPlatforms.x7,
32+
["xlite"] = supportedPlatforms.x7,
3233
["x9d"] = supportedPlatforms.x9,
3334
["x9d+"] = supportedPlatforms.x9,
3435
["x9e"] = supportedPlatforms.x9,

src/SCRIPTS/BF/ui.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function run_ui(event)
282282
if (event == userEvent.longPress.menu) then -- Taranis QX7 / X9
283283
menuActive = 1
284284
currentState = pageStatus.displayMenu
285-
elseif userEvent.press.pageUp and (event == userEvent.longPress.enter) then -- Horus
285+
elseif userEvent.press.pageDown and (event == userEvent.longPress.enter) then -- Horus
286286
menuActive = 1
287287
killEnterBreak = 1
288288
currentState = pageStatus.displayMenu

0 commit comments

Comments
 (0)