From 39cd0e7bad8b5beef365f538c3cfc7d3f9f360b0 Mon Sep 17 00:00:00 2001 From: rmultan Date: Mon, 24 Mar 2025 17:07:56 +0100 Subject: [PATCH] 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 (cherry picked from commit 82712ce8f83b2448d01ad26a949a82c27452ba5d) --- src/mares_iconhd_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mares_iconhd_parser.c b/src/mares_iconhd_parser.c index c38d3834..c968b786 100644 --- a/src/mares_iconhd_parser.c +++ b/src/mares_iconhd_parser.c @@ -1071,7 +1071,7 @@ mares_genius_foreach (dc_parser_t *abstract, dc_sample_callback_t callback, void unsigned int profile_minor = data[offset + 2]; unsigned int profile_major = data[offset + 3]; if (profile_type > 1 || - (profile_type == 0 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(1,0)) || + (profile_type == 0 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(2,0)) || (profile_type == 1 && OBJVERSION(profile_major,profile_minor) > OBJVERSION(0,2))) { ERROR (abstract->context, "Unsupported object type (%u) or version (%u.%u).", profile_type, profile_major, profile_minor);