Compare commits

..

No commits in common. "2d469d074ebea1f6a48220a2c3fd416f9e703aef" and "75c9fb40a7eeafbd7716ca12373936706017be05" have entirely different histories.

2 changed files with 4 additions and 8 deletions

View File

@ -17,9 +17,8 @@
#include "iface_nrf24l01.h" #include "iface_nrf24l01.h"
#define KYOSHO2_PACKET_PERIOD 1120 #define KYOSHO2_PACKET_PERIOD 1120 // 1600 for bind, let's see
#define KYOSHO2_BIND_PACKET_PERIOD 1600 #define KYOSHO2_BIND_COUNT 2000 // about 3sec
#define KYOSHO2_BIND_COUNT 6000 // about 9sec
#define KYOSHO2_BIND_CHANNEL 0x50 #define KYOSHO2_BIND_CHANNEL 0x50
#define KYOSHO2_PAYLOAD_SIZE 28 #define KYOSHO2_PAYLOAD_SIZE 28
#define KYOSHO2_RF_CHANNELS 15 #define KYOSHO2_RF_CHANNELS 15
@ -112,16 +111,13 @@ uint16_t KYOSHO2_callback()
#ifdef MULTI_SYNC #ifdef MULTI_SYNC
telemetry_set_input_sync(KYOSHO2_PACKET_PERIOD); telemetry_set_input_sync(KYOSHO2_PACKET_PERIOD);
#endif #endif
KYOSHO2_send_packet();
if(bind_counter) if(bind_counter)
{
if(--bind_counter==0) if(--bind_counter==0)
{ {
BIND_DONE; BIND_DONE;
KYOSHO2_resend = false; KYOSHO2_resend = false;
} }
return KYOSHO2_BIND_PACKET_PERIOD; KYOSHO2_send_packet();
}
return KYOSHO2_PACKET_PERIOD; return KYOSHO2_PACKET_PERIOD;
} }

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_REVISION 3 #define VERSION_REVISION 3
#define VERSION_PATCH_LEVEL 21 #define VERSION_PATCH_LEVEL 20
#define MODE_SERIAL 0 #define MODE_SERIAL 0