From 9525bc804796f72a45e9b5eadafeab114791d316 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 12 May 2020 19:10:17 +0200 Subject: [PATCH] Fix the hwOS ppO2 bug for firmware v3.08 The hwOS ppO2 firmware bug is also present in firmware 3.08. See commit b9a3606f379c3c9f57bbf561bdcb52fb76b711db for more details. --- src/hw_ostc_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hw_ostc_parser.c b/src/hw_ostc_parser.c index 0f96b90..79920b9 100644 --- a/src/hw_ostc_parser.c +++ b/src/hw_ostc_parser.c @@ -880,12 +880,12 @@ hw_ostc_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t call for (unsigned int i = 0; i < nconfig; ++i) { if (info[i].divisor && (nsamples % info[i].divisor) == 0) { if (length < info[i].size) { - // Due to a bug in the hwOS Tech firmware v3.03 to v3.07, and + // Due to a bug in the hwOS Tech firmware v3.03 to v3.08, and // the hwOS Sport firmware v10.57 to v10.63, the ppO2 divisor // is sometimes not correctly reset to zero when no ppO2 // samples are being recorded. if (info[i].type == PPO2 && parser->hwos && parser->model != OSTC4 && - ((firmware >= OSTC3FW(3,3) && firmware <= OSTC3FW(3,7)) || + ((firmware >= OSTC3FW(3,3) && firmware <= OSTC3FW(3,8)) || (firmware >= OSTC3FW(10,57) && firmware <= OSTC3FW(10,63)))) { WARNING (abstract->context, "Reset invalid ppO2 divisor to zero."); info[i].divisor = 0;