From 075ed11f6f8a57eafa65f0966486eaf5e37d329e Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Fri, 11 Sep 2015 09:58:45 +0200 Subject: [PATCH] flash-ota: fix subtype for AES --- flash-ota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash-ota.c b/flash-ota.c index f7aabf8..9ffdeb8 100644 --- a/flash-ota.c +++ b/flash-ota.c @@ -283,7 +283,7 @@ int send_hm_message(struct ota_dev *dev, struct recv_data *rdata, uint8_t *msg) } if (rdata->message_type == MESSAGE_TYPE_E) { if (rdata->message[TYPE] == 0x02) { - if (rdata->message[PAYLOAD] == 0x01) { + if (rdata->message[PAYLOAD] == 0x04) { printf("AES request received but not implemented for culfw!\n"); } else if (rdata->message[PAYLOAD] >= 0x80 && rdata->message[PAYLOAD] <= 0x8f) { printf("NACK\n"); -- 2.39.2