#131 start of unit status text, added updating coordinator waste processing option on reconnect
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user