Use 1.8s for Bind Send

Removed the short and long bind count logic.
This commit is contained in:
Frankie Arzu 2023-12-17 09:18:57 -06:00
parent a313148d7b
commit 965b00c16e

View File

@ -28,13 +28,12 @@
//During binding we will send BIND_COUNT packets //During binding we will send BIND_COUNT packets
//One packet each 10msec //One packet each 10msec
// //
// Most RXs seems to work properly with Long BIND send counts: Spektrum, OrangeRX. // Most RXs seems to work properly with a long BIND send count (3s): Spektrum, OrangeRX.
// Lemon-RX G2s seems to have a timeout waiting for the channel to get quiet after the // Lemon-RX G2s seems to have a timeout waiting for the channel to get quiet after the
// first good BIND packet.. If using 3s (300), Lemon-RX will not transmit the BIND-Response packet. // first good BIND packet.. If using 3s (300), Lemon-RX will not transmit the BIND-Response packet.
#define DSM_BIND_COUNT 300 // About 3s #define DSM_BIND_COUNT 180 // About 1.8s
#define DSM_BIND_COUNT_SHORT 180 // About 1.8s. This works for ALL brands #define DSM_BIND_COUNT_READ 600 // About 4.2s of waiting for Response
#define DSM_BIND_COUNT_READ 2*DSM_BIND_COUNT // About 4.2s of waiting for Response
enum { enum {
DSM_BIND_WRITE=0, DSM_BIND_WRITE=0,
@ -628,11 +627,7 @@ void DSM_init()
{ {
DSM_initialize_bind_phase(); DSM_initialize_bind_phase();
phase = DSM_BIND_WRITE; phase = DSM_BIND_WRITE;
if (sub_protocol == DSM_AUTO) {
bind_counter=DSM_BIND_COUNT_SHORT; // Lemon-RX fix
} else {
bind_counter=DSM_BIND_COUNT; bind_counter=DSM_BIND_COUNT;
}
#if DEBUG_BIND #if DEBUG_BIND
debugln("Bind Started: write count=%d",bind_counter); debugln("Bind Started: write count=%d",bind_counter);
#endif #endif