diff --git a/coal_power_station/generator.lua b/coal_power_station/generator.lua index b952c21..fae05de 100644 --- a/coal_power_station/generator.lua +++ b/coal_power_station/generator.lua @@ -235,7 +235,7 @@ techage.register_node({"techage:generator", "techage:generator_on"}, { return State:on_beduino_receive_cmnd(pos, topic, payload) end, on_beduino_request_data = function(pos, src, topic, payload) - local nvm = techage.get_nvm(pos) + local nvm = techage.get_nvm(pos) if topic == 135 then -- Delivered Power return 0, {math.floor((nvm.provided or 0) + 0.5)} else diff --git a/icta_controller/display.lua b/icta_controller/display.lua index 5433f0e..1b1b1bc 100644 --- a/icta_controller/display.lua +++ b/icta_controller/display.lua @@ -215,10 +215,10 @@ function techage.display.write_row(pos, payload, cycle_time, beduino) local nvm = techage.get_nvm(pos) local mem = techage.get_mem(pos) local str, row - + nvm.text = nvm.text or {} mem.ticks = mem.ticks or 0 - + if beduino then row = tonumber(payload:sub(1,1) or "1") or 1 str = payload:sub(2) or "oops" @@ -226,7 +226,7 @@ function techage.display.write_row(pos, payload, cycle_time, beduino) str = tostring(payload.get("str")) or "oops" row = tonumber(payload.get("row")) or 1 end - + if mem.ticks == 0 then mem.ticks = cycle_time end diff --git a/logic/light_detector.lua b/logic/light_detector.lua index 4c81a3e..41daa2e 100755 --- a/logic/light_detector.lua +++ b/logic/light_detector.lua @@ -36,7 +36,7 @@ local function switch_on(pos) end local function node_timer(pos) - + local nvm = techage.get_nvm(pos) trigger = nvm.mode or 7