comparison Discovery/Src/settings.c @ 982:22d5b477c903 GasConsumption

Code cleanup: Remove disabled option to switch deco calc on/off
author Ideenmodellierer
date Sun, 02 Mar 2025 21:42:45 +0100
parents 79b522fbabe6
children d63584d6428d
comparison
equal deleted inserted replaced
981:c6c781a2e85b 982:22d5b477c903
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: 590 case 0xFFFF0028:
591 #ifdef ENABLE_DECOCALC_OPTION
592 /* In previous version deco gases were automatically used for deco calculation */
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 */
594 {
595 if(Settings.gas[tmp].note.ub.deco)
596 {
597 Settings.gas[tmp].note.ub.decocalc = 1;
598 }
599 else
600 {
601 Settings.gas[tmp].note.ub.decocalc = 0;
602 }
603 }
604 #endif
605 // no break; 591 // no break;
606 case 0xFFFF0029: 592 case 0xFFFF0029:
607 Settings.cvAutofocus = 0; 593 Settings.cvAutofocus = 0;
608 // no break; 594 // no break;
609 case 0xFFFF002A: 595 case 0xFFFF002A: