Skip to content

Commit 39cd0e7

Browse files
rmultanmikeller
authored andcommitted
Add support for a new Sirius profile version
After upgrading a Mares Sirius to firmware version 1.6.16, the profile version changed to v2.0. Surprisingly, despite the change in the major version number, there appear to be no functional changes in the data format. Signed-off-by: rmultan <[email protected]> (cherry picked from commit 82712ce)
1 parent d2874be commit 39cd0e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mares_iconhd_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ mares_genius_foreach (dc_parser_t *abstract, dc_sample_callback_t callback, void
10711071
unsigned int profile_minor = data[offset + 2];
10721072
unsigned int profile_major = data[offset + 3];
10731073
if (profile_type > 1 ||
1074-
(profile_type == 0 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(1,0)) ||
1074+
(profile_type == 0 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(2,0)) ||
10751075
(profile_type == 1 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(0,2))) {
10761076
ERROR (abstract->context, "Unsupported object type (%u) or version (%u.%u).",
10771077
profile_type, profile_major, profile_minor);

0 commit comments

Comments
 (0)