Hi
There's a log write in fbe_hysteresis_3_limits function. Can I disable this log write? I use this function for brightness evaluation and it can write 70 pages of log every day.
--- [Function] fbe_hysteresis_3_limits--- Hysteresis with 3 limits--- [Comment]--- The module evaluates an input value in dependence on 3 freely definable limits (3 switch-on and 3 switch-off values).--- When the limits are exceeded or dropped below, the outputs 1-3 are controlled operated.--- If a limit has been exceeded (dropped below), first the limit must be dropped below (exceeded) again, before the output can be sent again if the limit is exceeded (dropped below) again.--- [Input] --- Input [object]--- Limit 1 ON [value]--- Limit 1 OFF [value]--- Limit 2 ON [value]--- Limit 2 OFF [value]--- Limit 3 ON [value]--- Limit 3 OFF [value]--- [Output] --- threshold1 - Threshold 1 [object, storage]--- threshold2 - Threshold 2 [object, storage]--- threshold3 - Threshold 3 [object, storage]functionfbe_hysteresis_3_limits(input, on1, off1, on2, off2, on3, off3, blockID)
localon = { on1, on2, on3 }
localoff = { off1, off2, off3 }
localprevState = storage.get(blockID .. "_prevState") or {}
localout = {}
log(on)
log(off)
log(prevState)
fori=1,3dolocalstate = 0ifon[i] ~= nilandinput > on[i] thenstate = 1elseifoff[i] ~= nilandinput < off[i] thenstate = -1endifstate == 0orprevState[i] == nilorprevState[i] == statethenout[i] = nilelseout[i] = state > 0endprevState[i] = stateendstorage.set(blockID .. "_prevState", prevState)
returnout[1], out[2], out[3]
end
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259