Mercurial > public > ostc4
comparison Discovery/Src/settings.c @ 1050:88b6ab90c55a GasConsumption
Added separate LLC view for surface GF:
A new LLC view has been added. In addition the surface GF is now clipped to a value of 9.99 => 999% in the visualization
| author | Ideenmodellierer |
|---|---|
| date | Wed, 19 Nov 2025 21:34:18 +0100 |
| parents | 6fb16ca39125 |
| children |
comparison
equal
deleted
inserted
replaced
| 1049:d91345e9c009 | 1050:88b6ab90c55a |
|---|---|
| 93 | 93 |
| 94 /* always adjust check_and_correct_settings() accordingly | 94 /* always adjust check_and_correct_settings() accordingly |
| 95 * There might even be entries with fixed values that have no range | 95 * There might even be entries with fixed values that have no range |
| 96 */ | 96 */ |
| 97 const SSettings SettingsStandard = { | 97 const SSettings SettingsStandard = { |
| 98 .header = 0xFFFF002D, | 98 .header = 0xFFFF002E, |
| 99 .warning_blink_dsec = 8 * 2, | 99 .warning_blink_dsec = 8 * 2, |
| 100 .lastDiveLogId = 0, | 100 .lastDiveLogId = 0, |
| 101 .logFlashNextSampleStartAddress = SAMPLESTART, | 101 .logFlashNextSampleStartAddress = SAMPLESTART, |
| 102 | 102 |
| 103 .gas[0].oxygen_percentage = 21, | 103 .gas[0].oxygen_percentage = 21, |
| 659 sprintf((char*)pSettings->profileName[0],"STANDARD"); | 659 sprintf((char*)pSettings->profileName[0],"STANDARD"); |
| 660 sprintf((char*)pSettings->profileName[1],"OC_TX___"); | 660 sprintf((char*)pSettings->profileName[1],"OC_TX___"); |
| 661 sprintf((char*)pSettings->profileName[2],"MCCR____"); | 661 sprintf((char*)pSettings->profileName[2],"MCCR____"); |
| 662 sprintf((char*)pSettings->profileName[3],"ECCR____"); | 662 sprintf((char*)pSettings->profileName[3],"ECCR____"); |
| 663 pSettings->activeProfile = 0; | 663 pSettings->activeProfile = 0; |
| 664 // no break; | |
| 665 case 0xFFFF002D: | |
| 666 if(pSettings->tX_userselectedLeftLowerCornerPrimary > LLC_GF) /* GF_Surf was added behind => shift ID of views */ | |
| 667 { | |
| 668 pSettings->tX_userselectedLeftLowerCornerPrimary++; | |
| 669 } | |
| 664 | 670 |
| 665 // no break; | 671 // no break; |
| 666 default: | 672 default: |
| 667 pSettings->header = pStandard->header; | 673 pSettings->header = pStandard->header; |
| 668 break; // no break before!! | 674 break; // no break before!! |
