Mercurial > public > ostc4
comparison Discovery/Src/t7.c @ 211:85bd5fea5e08 cv-persistent
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 <jlmulder@xs4all.nl>
| author | Jan Mulder <jlmulder@xs4all.nl> |
|---|---|
| date | Tue, 26 Mar 2019 16:02:22 +0100 |
| parents | b2a9e9b02df0 |
| children | 51a3aeffc6b3 |
comparison
equal
deleted
inserted
replaced
| 210:b2a9e9b02df0 | 211:85bd5fea5e08 |
|---|---|
| 1521 { | 1521 { |
| 1522 cv_disabled = 1; | 1522 cv_disabled = 1; |
| 1523 break; | 1523 break; |
| 1524 } | 1524 } |
| 1525 } | 1525 } |
| 1526 | |
| 1527 if ((*pViews == CVIEW_sensors || *pViews == CVIEW_sensors_mV) && | |
| 1528 stateUsed->diveSettings.ppo2sensors_deactivated) | |
| 1529 { | |
| 1530 cv_disabled = 1; | |
| 1531 } | |
| 1532 | |
| 1526 if(cv_disabled) | 1533 if(cv_disabled) |
| 1527 { | 1534 { |
| 1528 if(*pViews < CVIEW_END) | 1535 if(*pViews < CVIEW_END) |
| 1529 { | 1536 { |
| 1530 pViews++; | 1537 pViews++; |
