target/image: Add support for S6 record in Motorola SREC files
[openocd.git] / src / target / image.c
index 0d98c57..9bd8f6b 100644 (file)
@@ -643,8 +643,8 @@ static int image_mot_buffer_complete_inner(struct image *image,
                                        section[image->num_sections].size += 1;
                                        full_address++;
                                }
-                       } else if (record_type == 5) {
-                               /* S5 is the data count record, we ignore it */
+                       } else if (record_type == 5 || record_type == 6) {
+                               /* S5 and S6 are the data count records, we ignore them */
                                uint32_t dummy;
 
                                while (count-- > 0) {