controller bugfixes

This commit is contained in:
Joachim Stolberg 2020-03-18 17:31:25 +01:00
parent a9d4d91bb6
commit 82c5b06009
2 changed files with 2 additions and 2 deletions

View File

@ -503,7 +503,7 @@ techage.register_node({"techage:ta4_icta_controller"}, {
set_input(pos, number, src, topic) set_input(pos, number, src, topic)
elseif topic == "state" then elseif topic == "state" then
local state = meta:get_int("state") local state = meta:get_int("state")
return techage.statestring(state) return techage.StateStrings(state)
else else
return "unsupported" return "unsupported"
end end

View File

@ -621,7 +621,7 @@ techage.register_node({"techage:ta4_lua_controller"}, {
set_input(pos, number, "msg", payload) set_input(pos, number, "msg", payload)
elseif topic == "state" then elseif topic == "state" then
local running = meta:get_int("running") or STATE_STOPPED local running = meta:get_int("running") or STATE_STOPPED
return techage.statestring(running) return techage.StateStrings(running)
else else
return "unsupported" return "unsupported"
end end