# HG changeset patch # User Jan Mulder # Date 1553612542 -3600 # Node ID 85bd5fea5e080e553f85f2287dbeffbcec1692c3 # Parent b2a9e9b02df00f9acdda9156a6ce51ffce9256ac New feature: do not show sensor customviews when no sensors attached There are mCCR divers, that use a DC just for deco and time purposes and not for O2 tracking and logging. These divers typically use the existing Fixed SP mode, and have 0 active 02 sensors. This commit simply suppresses display of the 2 customviews in case there are no active sensors defined. Signed-off-by: Jan Mulder diff -r b2a9e9b02df0 -r 85bd5fea5e08 Discovery/Src/t7.c --- a/Discovery/Src/t7.c Tue Mar 26 13:00:15 2019 +0100 +++ b/Discovery/Src/t7.c Tue Mar 26 16:02:22 2019 +0100 @@ -1523,6 +1523,13 @@ break; } } + + if ((*pViews == CVIEW_sensors || *pViews == CVIEW_sensors_mV) && + stateUsed->diveSettings.ppo2sensors_deactivated) + { + cv_disabled = 1; + } + if(cv_disabled) { if(*pViews < CVIEW_END)