]> git.zerfleddert.de Git - hmcfgusb/commitdiff
flash-ota: fix subtype for AES
authorMichael Gernoth <michael@gernoth.net>
Fri, 11 Sep 2015 07:58:45 +0000 (09:58 +0200)
committerMichael Gernoth <michael@gernoth.net>
Fri, 11 Sep 2015 07:58:45 +0000 (09:58 +0200)
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_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");
                                                                        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