Fix E01X hang up when option=0

This commit is contained in:
Pascal Langer 2019-01-09 16:56:53 +01:00
parent 103acb8294
commit 15dfe8cead
4 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_REVISION 1
#define VERSION_PATCH_LEVEL 23
#define VERSION_PATCH_LEVEL 25
//******************
// Protocols

View File

@ -618,7 +618,7 @@ void HS6200_WritePayload(uint8_t* msg, uint8_t len)
}
NRF24L01_WritePayload(payload, pos);
delayMicroseconds(option);
delayMicroseconds(option+20);
NRF24L01_WritePayload(payload, pos);
}
//

View File

@ -59,7 +59,7 @@ static void __attribute__((unused)) V911S_send_packet(uint8_t bind)
packet[ 0]=(rf_ch_num<<3)|channel;
packet[ 1]=V911S_FLAG_EXPERT; // short press on left 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
uint16_t ch=convert_channel_16b_limit(THROTTLE ,0,0x7FF);
packet[ 7] = ch;