From 503d934c19bd5989c8fb387b34b4f774ba3e31bd Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 20 Jun 2018 20:12:03 +0200 Subject: [PATCH] shearwater: Emit a string saying the source of ppo2 values Signed-off-by: Anton Lundin Signed-off-by: Linus Torvalds --- src/shearwater_predator_parser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shearwater_predator_parser.c b/src/shearwater_predator_parser.c index 6b1ae43..46f0ff0 100644 --- a/src/shearwater_predator_parser.c +++ b/src/shearwater_predator_parser.c @@ -502,8 +502,12 @@ shearwater_predator_parser_cache (shearwater_predator_parser_t *parser) // uncalibrated). WARNING (abstract->context, "Disabled all O2 sensors due to a default calibration value."); parser->calibrated = 0; + if (mode != DC_DIVEMODE_OC) + add_string(parser, "PPO2 source", "voted/averaged"); } else { parser->calibrated = data[86]; + if (mode != DC_DIVEMODE_OC) + add_string(parser, "PPO2 source", "cells"); } // Cache the data for later use.