From: Michael Gernoth Date: Sun, 8 Nov 2015 18:23:40 +0000 (+0100) Subject: flash-ota: delay sending AES response a bit X-Git-Tag: v0.103~17 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/f40990db7b41dd6293572d5ae0418de43f6b5171?ds=sidebyside flash-ota: delay sending AES response a bit Some devices (at least HM-CC-IT-WM-W-EU) don't like receiving an AES response too early and will ignore it. Delay sending a bit to fix this. --- diff --git a/flash-ota.c b/flash-ota.c index 22f98ce..5d39e6c 100644 --- a/flash-ota.c +++ b/flash-ota.c @@ -325,6 +325,7 @@ int send_hm_message(struct ota_dev *dev, struct recv_data *rdata, uint8_t *msg) memcpy(&(rbuf[PAYLOAD]), resp, 16); SET_LEN_FROM_PAYLOADLEN(rbuf, 16); + usleep(110000); /* Determined by a fair dice roll */ return send_hm_message(dev, rdata, rbuf); } } diff --git a/version.h b/version.h index 402e396..bdbf6ab 100644 --- a/version.h +++ b/version.h @@ -1 +1 @@ -#define VERSION "0.102" +#define VERSION "0.102-git"