]> cvs.zerfleddert.de Git - hmcfgusb/blobdiff - flash-ota.c
AES: add public-domain AES implementation from Brad Conte
[hmcfgusb] / flash-ota.c
index f7aabf8d966a74525e517ed3a0ba9fd0e0d2f4ec..9ffdeb8202f6ba44641a2e65d8bb0755c65dc8bd 100644 (file)
@@ -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");
Impressum, Datenschutz