Bladeren bron

re-apply fix to refactored code

Chris Mullins 8 jaren geleden
bovenliggende
commit
f9a67f2fc0
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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] = {