mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 21:08:12 +00:00
SLT: fix?
This commit is contained in:
parent
a7ac093753
commit
7217e8c41d
@ -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 71
|
#define VERSION_PATCH_LEVEL 72
|
||||||
|
|
||||||
//******************
|
//******************
|
||||||
// Protocols
|
// Protocols
|
||||||
|
@ -361,6 +361,7 @@ static void __attribute__((unused)) NRF250K_SetTXAddr(uint8_t* addr, uint8_t len
|
|||||||
if(option==0)
|
if(option==0)
|
||||||
#endif
|
#endif
|
||||||
{//NRF
|
{//NRF
|
||||||
|
NRF24L01_WriteReg(NRF24L01_03_SETUP_AW, len-2);
|
||||||
NRF24L01_WriteRegisterMulti(NRF24L01_10_TX_ADDR, addr, len);
|
NRF24L01_WriteRegisterMulti(NRF24L01_10_TX_ADDR, addr, len);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -403,6 +404,7 @@ static void __attribute__((unused)) NRF250K_WritePayload(uint8_t* msg, uint8_t l
|
|||||||
crc = crc16_update(crc, buf[i], 8);
|
crc = crc16_update(crc, buf[i], 8);
|
||||||
buf[last++] = crc >> 8;
|
buf[last++] = crc >> 8;
|
||||||
buf[last++] = crc & 0xff;
|
buf[last++] = crc & 0xff;
|
||||||
|
buf[last++] = 0;
|
||||||
|
|
||||||
//for(uint8_t i=0;i<last;i++)
|
//for(uint8_t i=0;i<last;i++)
|
||||||
// debug("%02X ",buf[i]);
|
// debug("%02X ",buf[i]);
|
||||||
|
@ -237,7 +237,6 @@ uint16_t SLT_callback()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{// Continue to send normal packets
|
{// Continue to send normal packets
|
||||||
NRF250K_SetPower(); // Set tx_power
|
|
||||||
phase = SLT_BUILD;
|
phase = SLT_BUILD;
|
||||||
if(sub_protocol==SLT_V1)
|
if(sub_protocol==SLT_V1)
|
||||||
return 20000-SLT_TIMING_BUILD;
|
return 20000-SLT_TIMING_BUILD;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user