Fix suunto serial numbers

libdivecomputer has already done the "byte to decimal" conversion.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Linus Torvalds 2014-11-24 11:08:59 -08:00 committed by Dirk Hohndel
parent b85f2333be
commit ddfdb6c306

View File

@ -360,9 +360,7 @@ suunto_d9_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, unsigne
switch (flags) {
case 0: /* serial */
string->desc = "Serial";
snprintf(buf, BUFLEN, "%02d%02d%02d%02d", (parser->serial >> 24) & 0xff,
(parser->serial >> 16) & 0xff, (parser->serial >> 8) & 0xff,
parser->serial & 0xff);
snprintf(buf, BUFLEN, "%08u", parser->serial);
break;
default:
return DC_STATUS_UNSUPPORTED;