Skip to content

Commit

Permalink
Update Losi_cyrf6936.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
pascallanger committed Nov 22, 2023
1 parent 7e7b555 commit a682b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Multiprotocol/Losi_cyrf6936.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ const uint8_t LOSI_data_code[][16] = {

static uint16_t __attribute__((unused)) LOSI_check(uint16_t val)
{
uint8_t tab[] = { 0xF1, 0xDA, 0xB6, 0xC8 };
const uint8_t PROGMEM tab[] = { 0xF1, 0xDA, 0xB6, 0xC8 };
uint8_t res = 0x0B, tmp;
uint16_t calc = val>>2; // don't care about the 2 first bits
for(uint8_t i=0; i<5; i++)
{
tmp=tab[i&0x03];
tmp=pgm_read_byte_near(&tab[i&0x03]);
if(calc&0x0001)
res ^= tmp>>4;
calc >>= 1;
Expand Down

0 comments on commit a682b0e

Please sign in to comment.