Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for X-Lite #135

Merged
merged 3 commits into from
May 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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