Mercurial > public > ostc4
comparison Discovery/Src/settings.c @ 834:2a8af51ab04d Evo_2_23
Added event based display changes for big font view:
It is now possible to activate "Autofocus" option in custom view dialog. This enables automatic switching of the current view depending on current dive situation. Because T7 view already displays a lot of information this feature targets the T3 view.
| author | Ideenmodellierer |
|---|---|
| date | Sun, 17 Dec 2023 21:14:17 +0100 |
| parents | b7d93ff6b3b2 |
| children | 2cab242c9a4a |
comparison
equal
deleted
inserted
replaced
| 833:e963d32f746e | 834:2a8af51ab04d |
|---|---|
| 87 | 87 |
| 88 /* always adjust check_and_correct_settings() accordingly | 88 /* always adjust check_and_correct_settings() accordingly |
| 89 * There might even be entries with fixed values that have no range | 89 * There might even be entries with fixed values that have no range |
| 90 */ | 90 */ |
| 91 const SSettings SettingsStandard = { | 91 const SSettings SettingsStandard = { |
| 92 .header = 0xFFFF0029, | 92 .header = 0xFFFF002A, |
| 93 .warning_blink_dsec = 8 * 2, | 93 .warning_blink_dsec = 8 * 2, |
| 94 .lastDiveLogId = 0, | 94 .lastDiveLogId = 0, |
| 95 .logFlashNextSampleStartAddress = SAMPLESTART, | 95 .logFlashNextSampleStartAddress = SAMPLESTART, |
| 96 | 96 |
| 97 .gas[0].oxygen_percentage = 21, | 97 .gas[0].oxygen_percentage = 21, |
| 337 .ext_sensor_map[7] = SENSOR_NONE, | 337 .ext_sensor_map[7] = SENSOR_NONE, |
| 338 .buttonLockActive = 0, | 338 .buttonLockActive = 0, |
| 339 .compassDeclinationDeg = 0, | 339 .compassDeclinationDeg = 0, |
| 340 .delaySetpointLow = false, | 340 .delaySetpointLow = false, |
| 341 .timerDurationS = 180, | 341 .timerDurationS = 180, |
| 342 .cvAutofocus = 0, | |
| 342 }; | 343 }; |
| 343 | 344 |
| 344 /* Private function prototypes -----------------------------------------------*/ | 345 /* Private function prototypes -----------------------------------------------*/ |
| 345 uint8_t checkValue(uint8_t value,uint8_t from, uint8_t to); | 346 uint8_t checkValue(uint8_t value,uint8_t from, uint8_t to); |
| 346 | 347 |
| 593 { | 594 { |
| 594 Settings.gas[tmp].note.ub.decocalc = 0; | 595 Settings.gas[tmp].note.ub.decocalc = 0; |
| 595 } | 596 } |
| 596 } | 597 } |
| 597 // no break; | 598 // no break; |
| 599 case 0xFFFF0029: | |
| 600 Settings.cvAutofocus = 0; | |
| 601 // no break; | |
| 598 default: | 602 default: |
| 599 pSettings->header = pStandard->header; | 603 pSettings->header = pStandard->header; |
| 600 break; // no break before!! | 604 break; // no break before!! |
| 601 } | 605 } |
| 602 } | 606 } |
| 1829 } else if (Settings.timerDurationS < 1) { | 1833 } else if (Settings.timerDurationS < 1) { |
| 1830 Settings.timerDurationS = 1; | 1834 Settings.timerDurationS = 1; |
| 1831 | 1835 |
| 1832 corrections++; | 1836 corrections++; |
| 1833 setFirstCorrection(parameterId); | 1837 setFirstCorrection(parameterId); |
| 1838 } | |
| 1839 parameterId++; | |
| 1840 if(Settings.cvAutofocus > 1) | |
| 1841 { | |
| 1842 corrections++; | |
| 1843 Settings.cvAutofocus = 0; | |
| 1834 } | 1844 } |
| 1835 parameterId++; | 1845 parameterId++; |
| 1836 if(corrections) | 1846 if(corrections) |
| 1837 { | 1847 { |
| 1838 settingsWarning = 1; | 1848 settingsWarning = 1; |
