From 52ad9ced0b6bf974b264c90099a60cddbf6de195 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 7 Sep 2022 15:36:50 -0400 Subject: [PATCH] B6 --- firmware/controllers/lua/lua_lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/lua/lua_lib.h b/firmware/controllers/lua/lua_lib.h index d90f6b6f41..d53dafdfac 100644 --- a/firmware/controllers/lua/lua_lib.h +++ b/firmware/controllers/lua/lua_lib.h @@ -108,7 +108,7 @@ function setBitRange(data, totalBitIndex, bitWidth, value) \ if (bitInByteIndex + bitWidth > 8) then \ bitsToHandleNow = 8 - bitInByteIndex \ setBitRange(data, totalBitIndex + bitsToHandleNow, bitWidth - bitsToHandleNow, value >> bitsToHandleNow) \ - bitWidth = bitsToHandleNow; \ + bitWidth = bitsToHandleNow \ end \ mask = (1 << bitWidth) - 1 \ data[1 + byteIndex] = data[1 + byteIndex] & (~(mask << bitInByteIndex)) \