comparison Discovery/Src/tHome.c @ 685:980d7f8d5530 Betatest

Bugfix automatic switch to o2 sensor custom view: In surface mode the custom view will automatically switch to the o2 sensor view in case the OSTC4 is set to sensor mode. This was also done in case the o2 sensor view was deactivated. This lead to a automatic switch to e.g. compass what was not intended. In the new version the automatic switching is deactivated in case the custom view is deactivated
author Ideenmodellierer
date Wed, 03 Aug 2022 18:19:03 +0200
parents 68d95049f11a
children 4a6bffaa38b3
comparison
equal deleted inserted replaced
684:9bc817e9e221 685:980d7f8d5530
588 t3_set_customview_to_primary(); 588 t3_set_customview_to_primary();
589 } 589 }
590 } 590 }
591 } 591 }
592 592
593 if((stateUsed->mode == MODE_SURFACE) && (stateUsed->diveSettings.ppo2sensors_deactivated != 0x07) && (stateUsed->diveSettings.ccrOption != 0)) 593 if((stateUsed->mode == MODE_SURFACE) && (stateUsed->diveSettings.ppo2sensors_deactivated != 0x07) && (stateUsed->diveSettings.ccrOption != 0) && (!t7_customview_disabled(CVIEW_sensors)))
594 { 594 {
595 tHome_tick_count_o2sens++; 595 tHome_tick_count_o2sens++;
596 if(tHome_tick_count_o2sens > AUTORETURN_O2SENS) 596 if(tHome_tick_count_o2sens > AUTORETURN_O2SENS)
597 { 597 {
598 tHome_tick_count_o2sens = 0; 598 tHome_tick_count_o2sens = 0;