Skip to content

Commit 3af9362

Browse files
authored
Merge pull request #140 from codecae/dterm_weight_u16
Updated screens to support u16 version of dtermSetpointWeight
2 parents 09b90f5 + ddd78e1 commit 3af9362

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

src/SCRIPTS/BF/HORUS/rates2.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ return {
66
reboot = false,
77
eepromWrite = true,
88
minBytes = 23,
9+
outputBytes = 23,
910
text = {
1011
{ t = "Anti-Gravity", x = 28, y = 62 },
1112
{ t = "Gain", x = 38, y = 100 },

src/SCRIPTS/BF/X7/rates3.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ return {
66
reboot = false,
77
eepromWrite = true,
88
minBytes = 23,
9+
outputBytes = 23,
910
text = {
1011
{ t = "Anti-Grav Gain", x = 15, y = 17, to = SMLSIZE },
1112
{ t = "Anti-Grav Thr", x = 15, y = 30, to = SMLSIZE },

src/SCRIPTS/BF/X7/rates4.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ return {
66
reboot = false,
77
eepromWrite = true,
88
minBytes = 23,
9+
outputBytes = 23,
910
text = {
1011
{ t = "Dterm Setpoint", x = 28, y = 15, to = SMLSIZE },
1112
{ t = "Weight", x = 33, y = 28, to = SMLSIZE },

src/SCRIPTS/BF/X9/rates2.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ return {
66
reboot = false,
77
eepromWrite = true,
88
minBytes = 23,
9+
outputBytes = 23,
910
text = {
1011
{ t = "Anti-Gravity", x = 35, y = 13, to = SMLSIZE },
1112
{ t = "Gain", x = 15, y = 23, to = SMLSIZE },

src/SCRIPTS/BF/ui.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ Page = nil
3232

3333
backgroundFill = backgroundFill or ERASE
3434
foregroundColor = foregroundColor or SOLID
35+
3536
globalTextOptions = globalTextOptions or 0
3637

3738
local function saveSettings(new)
3839
if Page.values then
3940
if Page.preSave then
4041
payload = Page.preSave(Page)
4142
else
42-
payload = Page.values
43+
payload = {}
44+
for i=1,(Page.outputBytes or #Page.values) do
45+
payload[i] = Page.values[i]
46+
end
4347
end
4448
protocol.mspWrite(Page.write, payload)
4549
saveTS = getTime()

0 commit comments

Comments
 (0)