[MBUS] Fix vif/dif de/activation
Fixing condition which handles de/activation of the vif/dif filter. It was causing filter being activated even if there was no vif/dif filter applied, which then lead to error and sent only empty header.
eeprom (without any vif/dif filter applied):
conf = "" for i=1,16 do vdf = api.getVar(30+2*(i-1), 0) conf = conf .. pack.pack("b", vdf) end api.dumpArray(conf)
~>
00 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
condition:
...
for i=1, FLen do
vdf = g(30+2*(i-1), 0)
if vdf > 0xFF then
mvdf("activate", vdf)
else
mvdf("deactivate")
end
...