SLT CC2500 fix

This commit is contained in:
Pascal Langer 2020-02-20 17:37:58 +01:00
parent 7217e8c41d
commit a4e9082f53
3 changed files with 6 additions and 5 deletions

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_REVISION 0
#define VERSION_PATCH_LEVEL 72
#define VERSION_PATCH_LEVEL 73
//******************
// Protocols

View File

@ -356,8 +356,6 @@ static void __attribute__((unused)) NRF250K_SetTXAddr(uint8_t* addr, uint8_t len
if (len > 5) len = 5;
if (len < 3) len = 3;
#ifdef CC2500_INSTALLED
xn297_addr_len = len;
memcpy(xn297_tx_addr, addr, len);
if(option==0)
#endif
{//NRF
@ -366,6 +364,10 @@ static void __attribute__((unused)) NRF250K_SetTXAddr(uint8_t* addr, uint8_t len
return;
}
//CC2500
#ifdef CC2500_INSTALLED
xn297_addr_len = len;
memcpy(xn297_tx_addr, addr, len);
#endif
}
static void __attribute__((unused)) NRF250K_WritePayload(uint8_t* msg, uint8_t len)

View File

@ -272,10 +272,9 @@ uint16_t initSLT()
/* rx_tx_addr[0]=0x01;rx_tx_addr[1]=0x02;rx_tx_addr[2]=0x0B;rx_tx_addr[3]=0x57;*/
#endif
}
SLT_set_freq();
SLT_init();
SLT_set_freq();
phase = SLT_BUILD;
return 50000;
}