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 30, 2023
1 parent a1737ea commit 1ceed87
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Multiprotocol/Losi_cyrf6936.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@

#define LOSI_FORCE_ID

//const uint8_t PROGMEM LOSI_bind_sop_code[] = {0x62, 0xdf, 0xc1, 0x49, 0xdf, 0xb1, 0xc0, 0x49};
const uint8_t LOSI_bind_data_code[8] =
{ 0xD7, 0xA1, 0x54, 0xB1, 0x5E, 0x89, 0xAE, 0x86 } ;

const uint8_t LOSI_data_code[][8] = {
//(Freq-1)%5=0
{ 0x83, 0xF7, 0xA8, 0x2D, 0x7A, 0x44, 0x64, 0xD3 },
Expand Down Expand Up @@ -69,6 +65,8 @@ const uint8_t LOSI_data_code[][8] = {
{ 0x07, 0xBD, 0x9F, 0x26, 0xC8, 0x31, 0x0F, 0xB8 },
{ 0xEF, 0x03, 0x95, 0x89, 0xB4, 0x71, 0x61, 0x9D },
{ 0x40, 0xBA, 0x97, 0xD5, 0x86, 0x4F, 0xCC, 0xD1 }
//Bind
{ 0xD7, 0xA1, 0x54, 0xB1, 0x5E, 0x89, 0xAE, 0x86 } ;
};

static uint16_t __attribute__((unused)) LOSI_check(uint16_t val)
Expand Down Expand Up @@ -139,7 +137,7 @@ static void __attribute__((unused)) LOSI_cyrf_init()
CYRF_WriteRegister(CYRF_1F_TX_OVERRIDE, 0x04); // No CRC
//CYRF_WriteRegister(CYRF_1E_RX_OVERRIDE, 0x14);
//CYRF_WriteRegister(CYRF_14_EOP_CTRL, 0x02);
CYRF_ConfigDataCode(LOSI_bind_data_code, 16); // Load bind data code by default
CYRF_ConfigDataCode(&LOSI_data_code[40], 16); // Load bind data code by default
}

uint16_t LOSI_callback()
Expand Down

0 comments on commit 1ceed87

Please sign in to comment.