File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 update this file for new releases
33 */
44
5- #define BOOTLOADER_VERSION 15
5+ #define BOOTLOADER_VERSION 16
66
77
88
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ static char receiveByte;
201201static bool messagereceived ;
202202static int cmd ;
203203static int received ;
204-
204+ static bool initialized ;
205205static uint8_t rxBuffer [258 ];
206206static uint8_t payLoadBuffer [256 ];
207207static uint8_t rxbyte ;
@@ -342,7 +342,11 @@ static void setTransmit()
342342 gpio_mode_set_output (input_pin , GPIO_OUTPUT_PUSH_PULL );
343343
344344 // delay a bit to let the sender get setup for receiving
345- delayMicroseconds (BITTIME );
345+ // only delay if device info has been sent, this prevents
346+ // an issue with iNAV
347+ if (initialized ){
348+ delayMicroseconds (BITTIME );
349+ }
346350}
347351
348352static void serialwriteOneChar (uint8_t c )
@@ -373,6 +377,7 @@ static void send_BAD_CRC_ACK()
373377static void sendDeviceInfo ()
374378{
375379 sendString (devinfo .deviceInfo ,sizeof (devinfo .deviceInfo ));
380+ initialized = true;
376381}
377382
378383static bool checkAddressWritable (uint32_t address )
@@ -961,7 +966,7 @@ int main(void)
961966
962967 checkForSignal ();
963968
964- gpio_mode_set_input (input_pin , GPIO_PULL_NONE );
969+ gpio_mode_set_input (input_pin , GPIO_PULL_UP );
965970
966971#ifdef USE_ADC_INPUT // go right to application
967972 jump ();
You can’t perform that action at this time.
0 commit comments