#131 start of unit status text, added updating coordinator waste processing option on reconnect

This commit is contained in:
Mikayla Fischler
2022-12-05 16:17:09 -05:00
parent 5224dcbd25
commit 6bdde02268
12 changed files with 233 additions and 134 deletions

View File

@@ -174,7 +174,7 @@ local function hazard_button(args)
end
end
-- set the value
-- set the value (true simulates pressing the button)
---@param val boolean new value
function e.set_value(val)
if val then e.handle_touch(core.events.touch("", 1, 1)) end

View File

@@ -109,7 +109,6 @@ local function multi_button(args)
function e.set_value(val)
e.value = val
draw()
args.callback(e.value)
end
-- initial draw

View File

@@ -72,7 +72,7 @@ local function push_button(args)
end
end
-- set the value
-- set the value (true simulates pressing the button)
---@param val boolean new value
function e.set_value(val)
if val then e.handle_touch(core.events.touch("", 1, 1)) end

View File

@@ -82,9 +82,6 @@ local function switch_button(args)
-- set state
e.value = val
draw_state()
-- call the touch callback with state
args.callback(e.value)
end
return e.get()