Skip to content

Commit

Permalink
Updated screens to support ignore u16 version of dtermSetpointWeight
Browse files Browse the repository at this point in the history
  • Loading branch information
codecae committed Jun 16, 2018
1 parent 09b90f5 commit ddd78e1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/SCRIPTS/BF/HORUS/rates2.lua
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
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
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
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
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

0 comments on commit ddd78e1

Please sign in to comment.