mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-10 01:28:13 +00:00
SLT CC2500 fix
This commit is contained in:
parent
7217e8c41d
commit
a4e9082f53
@ -19,7 +19,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_REVISION 0
|
#define VERSION_REVISION 0
|
||||||
#define VERSION_PATCH_LEVEL 72
|
#define VERSION_PATCH_LEVEL 73
|
||||||
|
|
||||||
//******************
|
//******************
|
||||||
// Protocols
|
// Protocols
|
||||||
|
@ -356,8 +356,6 @@ static void __attribute__((unused)) NRF250K_SetTXAddr(uint8_t* addr, uint8_t len
|
|||||||
if (len > 5) len = 5;
|
if (len > 5) len = 5;
|
||||||
if (len < 3) len = 3;
|
if (len < 3) len = 3;
|
||||||
#ifdef CC2500_INSTALLED
|
#ifdef CC2500_INSTALLED
|
||||||
xn297_addr_len = len;
|
|
||||||
memcpy(xn297_tx_addr, addr, len);
|
|
||||||
if(option==0)
|
if(option==0)
|
||||||
#endif
|
#endif
|
||||||
{//NRF
|
{//NRF
|
||||||
@ -366,6 +364,10 @@ static void __attribute__((unused)) NRF250K_SetTXAddr(uint8_t* addr, uint8_t len
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//CC2500
|
//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)
|
static void __attribute__((unused)) NRF250K_WritePayload(uint8_t* msg, uint8_t len)
|
||||||
|
@ -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;*/
|
/* rx_tx_addr[0]=0x01;rx_tx_addr[1]=0x02;rx_tx_addr[2]=0x0B;rx_tx_addr[3]=0x57;*/
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
SLT_set_freq();
|
|
||||||
SLT_init();
|
SLT_init();
|
||||||
|
SLT_set_freq();
|
||||||
phase = SLT_BUILD;
|
phase = SLT_BUILD;
|
||||||
|
|
||||||
return 50000;
|
return 50000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user