Skip to content
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
1 change: 1 addition & 0 deletions src/SCRIPTS/BF/HORUS/rates2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ return {
reboot = false,
eepromWrite = true,
minBytes = 23,
outputBytes = 23,
text = {
{ t = "Anti-Gravity", x = 28, y = 62 },
{ t = "Gain", x = 38, y = 100 },
Expand Down
1 change: 1 addition & 0 deletions src/SCRIPTS/BF/X7/rates3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ return {
reboot = false,
eepromWrite = true,
minBytes = 23,
outputBytes = 23,
text = {
{ t = "Anti-Grav Gain", x = 15, y = 17, to = SMLSIZE },
{ t = "Anti-Grav Thr", x = 15, y = 30, to = SMLSIZE },
Expand Down
1 change: 1 addition & 0 deletions src/SCRIPTS/BF/X7/rates4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ return {
reboot = false,
eepromWrite = true,
minBytes = 23,
outputBytes = 23,
text = {
{ t = "Dterm Setpoint", x = 28, y = 15, to = SMLSIZE },
{ t = "Weight", x = 33, y = 28, to = SMLSIZE },
Expand Down
1 change: 1 addition & 0 deletions src/SCRIPTS/BF/X9/rates2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ return {
reboot = false,
eepromWrite = true,
minBytes = 23,
outputBytes = 23,
text = {
{ t = "Anti-Gravity", x = 35, y = 13, to = SMLSIZE },
{ t = "Gain", x = 15, y = 23, to = SMLSIZE },
Expand Down
6 changes: 5 additions & 1 deletion src/SCRIPTS/BF/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,18 @@ Page = nil

backgroundFill = backgroundFill or ERASE
foregroundColor = foregroundColor or SOLID

globalTextOptions = globalTextOptions or 0

local function saveSettings(new)
if Page.values then
if Page.preSave then
payload = Page.preSave(Page)
else
payload = Page.values
payload = {}
for i=1,(Page.outputBytes or #Page.values) do
payload[i] = Page.values[i]
end
end
protocol.mspWrite(Page.write, payload)
saveTS = getTime()
Expand Down