forked from betaflight/betaflight-tx-lua-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add control schema patch files, update README.md, add readme image
- Loading branch information
1 parent
6fe5a84
commit 8dc247c
Showing
4 changed files
with
129 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
diff --git "a/src/SCRIPTS/BF/X7/x7pre.lua" "b/src/SCRIPTS/BF/X7/x7pre.lua" | ||
index 1db2f35..1a78e6a 100644 | ||
--- "a/src/SCRIPTS/BF/X7/x7pre.lua" | ||
+++ "b/src/SCRIPTS/BF/X7/x7pre.lua" | ||
@@ -19,11 +19,11 @@ NoTelem = { 32, 55, "No Telemetry!", BLINK } | ||
ctrlSchema = { | ||
display = { | ||
prevPage = { | ||
- cond = function(e, evs) return e == evs.longPress.page end, | ||
+ cond = function(e, evs) return false end, | ||
func = function() stepPage(-1) end | ||
}, | ||
nextPage = { | ||
- cond = function(e, evs) return e == evs.release.page end, | ||
+ cond = function(e, evs) return e == evs.release.menu end, | ||
func = function() stepPage(1) end | ||
}, | ||
prevLine = { | ||
@@ -42,14 +42,14 @@ ctrlSchema = { | ||
end | ||
}, | ||
menu = { | ||
- cond = function(e, evs) return e == evs.release.menu end, | ||
+ cond = function(e, evs) return e == evs.longPress.menu end, | ||
func = function() | ||
setState("displayMenu") | ||
setLock("displayMenu.exit") | ||
end | ||
}, | ||
home = { | ||
- cond = function(e, evs) return e == evs.longPress.menu end, | ||
+ cond = function(e, evs) return false end, | ||
func = function() | ||
setLock("display.menu") | ||
gotoPage(1) | ||
@@ -101,7 +101,4 @@ ctrlSchema = { | ||
if string.match(radio.name, "^xlite") then | ||
ctrlSchema.display.prevPage.cond = function(e, evs) return e == evs.press.pageUp end | ||
ctrlSchema.display.nextPage.cond = function(e, evs) return e == evs.release.menu end | ||
- ctrlSchema.display.menu.cond = function(e, evs) return e == 32 end | ||
- ctrlSchema.display.home.cond = function(e, evs) return e == 128 end | ||
- ctrlSchema.displayMenu.exit.cond = function(e, evs) return e == 32 end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git "a/src/SCRIPTS/BF/X9/x9pre.lua" "b/src/SCRIPTS/BF/X9/x9pre.lua" | ||
index b8a6867..a1074e1 100644 | ||
--- "a/src/SCRIPTS/BF/X9/x9pre.lua" | ||
+++ "b/src/SCRIPTS/BF/X9/x9pre.lua" | ||
@@ -20,11 +20,11 @@ NoTelem = { 70, 55, "No Telemetry", BLINK } | ||
ctrlSchema = { | ||
display = { | ||
prevPage = { | ||
- cond = function(e, evs) return e == evs.longPress.page end, | ||
+ cond = function(e, evs) return false end, | ||
func = function() stepPage(-1) end | ||
}, | ||
nextPage = { | ||
- cond = function(e, evs) return e == evs.release.page end, | ||
+ cond = function(e, evs) return e == evs.release.menu end, | ||
func = function() stepPage(1) end | ||
}, | ||
prevLine = { | ||
@@ -43,14 +43,14 @@ ctrlSchema = { | ||
end | ||
}, | ||
menu = { | ||
- cond = function(e, evs) return e == evs.release.menu end, | ||
+ cond = function(e, evs) return e == evs.longPress.menu end, | ||
func = function() | ||
setState("displayMenu") | ||
setLock("displayMenu.exit") | ||
end | ||
}, | ||
home = { | ||
- cond = function(e, evs) return e == evs.longPress.menu end, | ||
+ cond = function(e, evs) return false end, | ||
func = function() | ||
setLock("display.menu") | ||
gotoPage(1) |