From f40990db7b41dd6293572d5ae0418de43f6b5171 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 8 Nov 2015 19:23:40 +0100 Subject: [PATCH 1/1] 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. --- flash-ota.c | 1 + version.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5