The format string was incorrect, producing firmware numbers as 3.2 instead of 3.02 as is the current OSTC firmware version.
This was reported via hw's forum: http://forum.heinrichsweikamp.com/read.php?2,14550,14552 Signed-off-by: Anton Lundin <gla...@acc.umu.se> --- src/hw_ostc_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw_ostc_parser.c b/src/hw_ostc_parser.c index 5e8cc3d..e419c77 100644 --- a/src/hw_ostc_parser.c +++ b/src/hw_ostc_parser.c @@ -458,7 +458,7 @@ hw_ostc_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, unsigned break; case 2: /* fw_version */ string->desc = "FW Version"; - snprintf(buf, BUFLEN, "%0u.%0u", data[layout->fw_version], data[layout->fw_version + 1]); + snprintf(buf, BUFLEN, "%0u.%02u", data[layout->fw_version], data[layout->fw_version + 1]); break; case 3: /* serial */ string->desc = "Serial"; -- 2.1.0 _______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface