From 157aa36c1e784a2e62e44dff2cf1ba5d81d379d3 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 13 Aug 2020 06:51:23 -0700 Subject: [PATCH] NuttX based bootloader:Track QGC change in sequnsing It appear that QGC is now resyncing between operation. This was causing the bl_state to be reset to STATE_PROTO_GET_SYNC and loosing the state of (STATE_PROTO_GET_SYNC|STATE_PROTO_GET_DEVICE) --- platforms/nuttx/src/bootloader/bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/nuttx/src/bootloader/bl.c b/platforms/nuttx/src/bootloader/bl.c index 617f99790b..9d14314d61 100644 --- a/platforms/nuttx/src/bootloader/bl.c +++ b/platforms/nuttx/src/bootloader/bl.c @@ -588,7 +588,7 @@ bootloader(unsigned timeout) goto cmd_bad; } - bl_state = STATE_PROTO_GET_SYNC; + SET_BL_STATE(STATE_PROTO_GET_SYNC); break; // get device info