Explorar o código

remove bogus progmem usage

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

+ 1 - 1
lib/MiLight/V2RFEncoding.cpp

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