11.02.2017, 00:11
Attention!
This script has stopped working after I updated the firmware to the latest version 2016.12.5.
The problem is event.getvalue() always returns zero when it is triggered by groupread. And as abonus the previous code now sets the group object to zero as a side effect.
Workaround is this small change:
if (event.type=='groupread') then
value = grp.getvalue(event.dst)
grp.response(event.dst,value,event.datatype)
end
This script has stopped working after I updated the firmware to the latest version 2016.12.5.
The problem is event.getvalue() always returns zero when it is triggered by groupread. And as abonus the previous code now sets the group object to zero as a side effect.
Workaround is this small change:
if (event.type=='groupread') then
value = grp.getvalue(event.dst)
grp.response(event.dst,value,event.datatype)
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