We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 378ba2f commit 0877a7bCopy full SHA for 0877a7b
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