rs485-lpc/lpc_lux_period.lua

8 lines
190 B
Lua
Raw Normal View History

local tv = get_trigger_variable(1)
if tv == nil or tv.integer == nil then return end
local p = tv.integer
if p < 1 then p = 1 end
if p > 60 then p = 60 end
lux_poll_s = p
lux_last_adj = nil