Skip to content

Commit

Permalink
Merge pull request #135 from betaflight/134_xlite
Browse files Browse the repository at this point in the history
added support for X-Lite
  • Loading branch information
mikeller authored May 28, 2018
2 parents 9ebf05d + 018b271 commit 1a4facf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/SCRIPTS/BF/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ return
minus = EVT_MINUS_FIRST,
plus = EVT_PLUS_FIRST,
pageDown = EVT_PAGEDN_FIRST,
pageUp = EVT_PAGEUP_FIRST
pageUp = EVT_PAGEUP_FIRST or EVT_LEFT_BREAK
},
longPress = {
enter = EVT_ENTER_LONG,
menu = EVT_MENU_LONG,
menu = EVT_MENU_LONG or EVT_RIGHT_LONG
},
repeatPress = {
minus = EVT_MINUS_REPT,
Expand All @@ -18,12 +18,12 @@ return
release = {
enter = EVT_ENTER_BREAK,
exit = EVT_EXIT_BREAK,
menu = EVT_MENU_BREAK,
menu = EVT_MENU_BREAK or EVT_RIGHT_BREAK,
minus = EVT_MINUS_BREAK,
plus = EVT_PLUS_BREAK
},
dial = {
left = EVT_ROT_LEFT,
right = EVT_ROT_RIGHT
left = EVT_ROT_LEFT or EVT_UP_BREAK,
right = EVT_ROT_RIGHT or EVT_DOWN_BREAK
}
}
1 change: 1 addition & 0 deletions src/SCRIPTS/BF/radios.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ local supportedRadios =
{
["x7"] = supportedPlatforms.x7,
["x7s"] = supportedPlatforms.x7,
["xlite"] = supportedPlatforms.x7,
["x9d"] = supportedPlatforms.x9,
["x9d+"] = supportedPlatforms.x9,
["x9e"] = supportedPlatforms.x9,
Expand Down
2 changes: 1 addition & 1 deletion src/SCRIPTS/BF/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function run_ui(event)
if (event == userEvent.longPress.menu) then -- Taranis QX7 / X9
menuActive = 1
currentState = pageStatus.displayMenu
elseif userEvent.press.pageUp and (event == userEvent.longPress.enter) then -- Horus
elseif userEvent.press.pageDown and (event == userEvent.longPress.enter) then -- Horus
menuActive = 1
killEnterBreak = 1
currentState = pageStatus.displayMenu
Expand Down

0 comments on commit 1a4facf

Please sign in to comment.