mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-10 00:18:15 +00:00
Protocol XK X420: Changed bitrate to 1Mbps
This commit is contained in:
parent
c5c7dda2e0
commit
5df877f32c
@ -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 58
|
#define VERSION_PATCH_LEVEL 59
|
||||||
|
|
||||||
//******************
|
//******************
|
||||||
// Protocols
|
// Protocols
|
||||||
|
@ -152,6 +152,8 @@ static void __attribute__((unused)) XK_init()
|
|||||||
|
|
||||||
uint16_t XK_callback()
|
uint16_t XK_callback()
|
||||||
{
|
{
|
||||||
|
if(sub_protocol==X420)
|
||||||
|
option=0; // Forcing the use of NRF24L01@1Mbps
|
||||||
#ifdef MULTI_SYNC
|
#ifdef MULTI_SYNC
|
||||||
telemetry_set_input_sync(XK_PACKET_PERIOD);
|
telemetry_set_input_sync(XK_PACKET_PERIOD);
|
||||||
#endif
|
#endif
|
||||||
@ -170,9 +172,13 @@ uint16_t XK_callback()
|
|||||||
|
|
||||||
uint16_t initXK()
|
uint16_t initXK()
|
||||||
{
|
{
|
||||||
BIND_IN_PROGRESS; // autobind protocol
|
if(sub_protocol==X420)
|
||||||
|
option=prev_option=0; // Forcing the use of NRF24L01@1Mbps
|
||||||
|
BIND_IN_PROGRESS; // Autobind protocol
|
||||||
XK_initialize_txid();
|
XK_initialize_txid();
|
||||||
XK_init();
|
XK_init();
|
||||||
|
if(sub_protocol==X420)
|
||||||
|
NRF24L01_SetBitrate(NRF24L01_BR_1M); // 1Mbps
|
||||||
hopping_frequency_no = 0;
|
hopping_frequency_no = 0;
|
||||||
bind_counter=XK_BIND_COUNT;
|
bind_counter=XK_BIND_COUNT;
|
||||||
return XK_INITIAL_WAIT;
|
return XK_INITIAL_WAIT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user