From: Michael Gernoth Date: Fri, 11 Sep 2015 12:15:46 +0000 (+0200) Subject: flash-ota: increment msgid when re-sending bootloader-request X-Git-Tag: v0.102~8 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/ac077fdd67977cd41dbfb2c0debefe6840cf35ff?hp=703ac645231770ddc1c349428463fc982a82b2cd flash-ota: increment msgid when re-sending bootloader-request --- 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; }