comparison Discovery/Src/settings.c @ 973:79b522fbabe6 Evo_2_23

Deactivate deco gas calculation option: In the previous version had the option to consider a deco gas i the calculation or not. Reason for this was to have the automatic gas suggestion available while the deco calculation is still based on the current gas. This might cause a critical situation in case the diver is not sure if the option is active or not => In the new version the TTS / deco is always calculated considering all deco gases.
author Ideenmodellierer
date Sun, 26 Jan 2025 19:31:38 +0100
parents 81049905d829
children 22d5b477c903
comparison
equal deleted inserted replaced
972:12426391edd9 973:79b522fbabe6
585 } 585 }
586 pSettings->cv_config_BigScreen = pSettings->cv_config_BigScreen >> (LEGACY_T3_START_ID_PRE_TIMER - 3); 586 pSettings->cv_config_BigScreen = pSettings->cv_config_BigScreen >> (LEGACY_T3_START_ID_PRE_TIMER - 3);
587 pSettings->cv_config_BigScreen &= ~0x00000007; /* just to be sure: clear lower three bits */ 587 pSettings->cv_config_BigScreen &= ~0x00000007; /* just to be sure: clear lower three bits */
588 pSettings->cv_config_BigScreen |= tmp; 588 pSettings->cv_config_BigScreen |= tmp;
589 // no break; 589 // no break;
590 case 0xFFFF0028: /* In previous version deco gases were automatically used for deco calculation */ 590 case 0xFFFF0028:
591 #ifdef ENABLE_DECOCALC_OPTION
592 /* In previous version deco gases were automatically used for deco calculation */
591 for(tmp=1; tmp<=2*NUM_GASES; tmp++) /* This is now handled by an additional parameter. Set it to true to maintain same behavior as before */ 593 for(tmp=1; tmp<=2*NUM_GASES; tmp++) /* This is now handled by an additional parameter. Set it to true to maintain same behavior as before */
592 { 594 {
593 if(Settings.gas[tmp].note.ub.deco) 595 if(Settings.gas[tmp].note.ub.deco)
594 { 596 {
595 Settings.gas[tmp].note.ub.decocalc = 1; 597 Settings.gas[tmp].note.ub.decocalc = 1;
597 else 599 else
598 { 600 {
599 Settings.gas[tmp].note.ub.decocalc = 0; 601 Settings.gas[tmp].note.ub.decocalc = 0;
600 } 602 }
601 } 603 }
604 #endif
602 // no break; 605 // no break;
603 case 0xFFFF0029: 606 case 0xFFFF0029:
604 Settings.cvAutofocus = 0; 607 Settings.cvAutofocus = 0;
605 // no break; 608 // no break;
606 case 0xFFFF002A: 609 case 0xFFFF002A: