Suunto EON Steel: add surface time reporting

For some reason I hadn't reported surface time.  It's trivial to do
especially now that we have the varargs string adding function.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Linus Torvalds 2016-07-21 19:42:14 +09:00 committed by Dirk Hohndel
parent 7fe87f36b5
commit 8eb1c1232e

View File

@ -1385,6 +1385,11 @@ static int traverse_diving_fields(suunto_eonsteel_parser_t *eon, const struct ty
return add_string_fmt(eon, "Desaturation Time", "%d:%02d", time / 60, time % 60);
}
if (!strcmp(name, "SurfaceTime")) {
unsigned int time = array_uint32_le(data) / 60;
return add_string_fmt(eon, "Surface Time", "%d:%02d", time / 60, time % 60);
}
return 0;
}