Skip to content

Commit aa121f8

Browse files
jefdriesenmikeller
authored andcommitted
Add support for a new Sirius header version
The Mares Sirius firmare upgrade to v1.6.16 also changed the header version to v2.0. Again, there appear to be no functional changes in the data format. See also commit 82712ce.
1 parent eae0fa2 commit aa121f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mares_iconhd_parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ mares_genius_cache (mares_iconhd_parser_t *parser)
505505
unsigned int type = array_uint16_le (data);
506506
unsigned int minor = data[2];
507507
unsigned int major = data[3];
508-
if (type != 1 || OBJVERSION(major,minor) > OBJVERSION(1,1)) {
508+
if (type != 1 || OBJVERSION(major,minor) > OBJVERSION(2,0)) {
509509
ERROR (abstract->context, "Unsupported object type (%u) or version (%u.%u).",
510510
type, major, minor);
511511
return DC_STATUS_DATAFORMAT;
@@ -524,7 +524,7 @@ mares_genius_cache (mares_iconhd_parser_t *parser)
524524

525525
// The Genius header (v1.x) has 10 bytes more at the end.
526526
unsigned int more = 0;
527-
if (major == 1) {
527+
if (major >= 1) {
528528
more = 16;
529529
}
530530

0 commit comments

Comments
 (0)