From 5e2d376627714c0786e964c53b47fb6d5bfad757 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Mon, 29 Nov 2021 14:26:57 +0100 Subject: [PATCH] Report the initial setpoint in SCR mode --- src/hw_ostc_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw_ostc_parser.c b/src/hw_ostc_parser.c index 29edcfd..f1092c0 100644 --- a/src/hw_ostc_parser.c +++ b/src/hw_ostc_parser.c @@ -273,7 +273,7 @@ hw_ostc_parser_cache (hw_ostc_parser_t *parser) } } // The first fixed setpoint is the initial setpoint in CCR mode. - if (data[layout->divemode] == OSTC3_CC) { + if (data[layout->divemode] == OSTC3_CC || data[layout->divemode] == OSTC3_PSCR) { initial_setpoint = data[60]; } // Initial CNS