From ac077fdd67977cd41dbfb2c0debefe6840cf35ff Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Fri, 11 Sep 2015 14:15:46 +0200 Subject: [PATCH] flash-ota: increment msgid when re-sending bootloader-request --- flash-ota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash-ota.c b/flash-ota.c index 953ed34..5e24aa6 100644 --- a/flash-ota.c +++ b/flash-ota.c @@ -660,7 +660,6 @@ int main(int argc, char **argv) if (hmid && my_hmid) { printf("Sending device with hmid %06x to bootloader\n", hmid); - out[MSGID] = msgid++; out[CTL] = 0x30; out[TYPE] = 0x11; SET_SRC(out, my_hmid); @@ -670,6 +669,7 @@ int main(int argc, char **argv) cnt = 3; do { + out[MSGID] = msgid++; if (send_hm_message(&dev, &rdata, out)) { break; } -- 2.39.5