diff --git a/patterns/intel_hex.hexpat b/patterns/intel_hex.hexpat index baf6b88..5ee0384 100644 --- a/patterns/intel_hex.hexpat +++ b/patterns/intel_hex.hexpat @@ -47,7 +47,9 @@ struct data_packet { } u16 checksum [[color("0045F0DF")]]; - u16 null_bytes [[color("005E565A")]]; + u8 line_ending_1 [[color("005E565A")]]; + if (line_ending_1 == '\r') + u8 line_ending_2 [[color("005E565A")]]; }; -data_packet data[while(!std::mem::eof())] @ 0x00; \ No newline at end of file +data_packet data[while(!std::mem::eof())] @ 0x00;