Skip to content

Commit 82712ce

Browse files
rmultanjefdriesen
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 <multan.rafal.k@gmail.com>
1 parent 32709e6 commit 82712ce

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
@@ -1054,7 +1054,7 @@ mares_genius_foreach (dc_parser_t *abstract, dc_sample_callback_t callback, void
10541054
unsigned int profile_minor = data[offset + 2];
10551055
unsigned int profile_major = data[offset + 3];
10561056
if (profile_type > 1 ||
1057-
(profile_type == 0 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(1,0)) ||
1057+
(profile_type == 0 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(2,0)) ||
10581058
(profile_type == 1 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(0,2))) {
10591059
ERROR (abstract->context, "Unsupported object type (%u) or version (%u.%u).",
10601060
profile_type, profile_major, profile_minor);

0 commit comments

Comments
 (0)