We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 378ba2f + 0877a7b commit 10954d4Copy full SHA for 10954d4
src/SCRIPTS/BF/ui.lua
@@ -122,7 +122,7 @@ local function processMspReply(cmd,rx_buf)
122
f.value = bit32.bor(f.value, raw_val)
123
end
124
local bits = #f.vals * 8
125
- if f.min < 0 and bit32.btest(f.value, bit32.lshift(1, bits - 1)) then
+ if f.min and f.min < 0 and bit32.btest(f.value, bit32.lshift(1, bits - 1)) then
126
f.value = f.value - (2 ^ bits)
127
128
f.value = f.value/(f.scale or 1)
0 commit comments