mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-10 01:28:13 +00:00
Fix E01X hang up when option=0
This commit is contained in:
parent
103acb8294
commit
15dfe8cead
@ -19,7 +19,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_REVISION 1
|
#define VERSION_REVISION 1
|
||||||
#define VERSION_PATCH_LEVEL 23
|
#define VERSION_PATCH_LEVEL 25
|
||||||
|
|
||||||
//******************
|
//******************
|
||||||
// Protocols
|
// Protocols
|
||||||
|
@ -618,7 +618,7 @@ void HS6200_WritePayload(uint8_t* msg, uint8_t len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
NRF24L01_WritePayload(payload, pos);
|
NRF24L01_WritePayload(payload, pos);
|
||||||
delayMicroseconds(option);
|
delayMicroseconds(option+20);
|
||||||
NRF24L01_WritePayload(payload, pos);
|
NRF24L01_WritePayload(payload, pos);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
@ -59,7 +59,7 @@ static void __attribute__((unused)) V911S_send_packet(uint8_t bind)
|
|||||||
packet[ 0]=(rf_ch_num<<3)|channel;
|
packet[ 0]=(rf_ch_num<<3)|channel;
|
||||||
packet[ 1]=V911S_FLAG_EXPERT; // short press on left button
|
packet[ 1]=V911S_FLAG_EXPERT; // short press on left button
|
||||||
packet[ 2]=GET_FLAG(CH5_SW,V911S_FLAG_CALIB); // long press on right button
|
packet[ 2]=GET_FLAG(CH5_SW,V911S_FLAG_CALIB); // long press on right button
|
||||||
memset(packet+3,0x00,14);
|
memset(packet+3, 0x00, V911S_PACKET_SIZE - 3);
|
||||||
//packet[3..6]=trims TAER signed
|
//packet[3..6]=trims TAER signed
|
||||||
uint16_t ch=convert_channel_16b_limit(THROTTLE ,0,0x7FF);
|
uint16_t ch=convert_channel_16b_limit(THROTTLE ,0,0x7FF);
|
||||||
packet[ 7] = ch;
|
packet[ 7] = ch;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user