Correct firmware version string from OSTC's
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 <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0ff1dd15f5
commit
f184b45e09
@ -554,7 +554,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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user