From: Michael Gernoth Date: Fri, 11 Sep 2015 07:58:45 +0000 (+0200) Subject: flash-ota: fix subtype for AES X-Git-Tag: v0.102~15 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/075ed11f6f8a57eafa65f0966486eaf5e37d329e flash-ota: fix subtype for AES --- 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");