Explorar o código

re-apply fix to refactored code

Chris Mullins %!s(int64=8) %!d(string=hai) anos
pai
achega
f9a67f2fc0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/MiLight/V2RFEncoding.cpp

+ 1 - 1
lib/MiLight/V2RFEncoding.cpp

@@ -3,7 +3,7 @@
 #define V2_OFFSET(byte, key, jumpStart) ( \
   pgm_read_byte(&V2_OFFSETS[byte-1][key%4]) \
     + \
-  ((jumpStart > 0 && key >= jumpStart && key <= jumpStart+0x80) ? 0x80 : 0) \
+  ((jumpStart > 0 && key >= jumpStart && key < jumpStart+0x80) ? 0x80 : 0) \
 )
 
 uint8_t const V2RFEncoding::V2_OFFSETS[][4] = {