Mercurial > public > ostc4
comparison Discovery/Src/settings.c @ 951:e9c37071933b Evo_2_23
Added vibration warning:
The internal buzzer of the GPIO_V2 may now be used as additional warning notificator. It can be activated using the check button in the customer view menu. The vibration will be active while the warning message is displayed in the dive window. In case the diver is in the menu then the warning will be active for a shorter duration.
author | Ideenmodellierer |
---|---|
date | Sun, 29 Dec 2024 18:29:56 +0100 |
parents | c6b858f2e025 |
children |
comparison
equal
deleted
inserted
replaced
950:922ee3d7d2f3 | 951:e9c37071933b |
---|---|
340 .delaySetpointLow = false, | 340 .delaySetpointLow = false, |
341 .timerDurationS = 180, | 341 .timerDurationS = 180, |
342 .cvAutofocus = 0, | 342 .cvAutofocus = 0, |
343 .slowExitTime = 0, | 343 .slowExitTime = 0, |
344 .timeZone.hours = 0, | 344 .timeZone.hours = 0, |
345 .timeZone.minutes = 0 | 345 .timeZone.minutes = 0, |
346 .warningBuzzer = 0 | |
346 }; | 347 }; |
347 | 348 |
348 /* Private function prototypes -----------------------------------------------*/ | 349 /* Private function prototypes -----------------------------------------------*/ |
349 uint8_t checkValue(uint8_t value,uint8_t from, uint8_t to); | 350 uint8_t checkValue(uint8_t value,uint8_t from, uint8_t to); |
350 | 351 |
606 Settings.slowExitTime = 0; | 607 Settings.slowExitTime = 0; |
607 // no break; | 608 // no break; |
608 case 0xFFFF002B: | 609 case 0xFFFF002B: |
609 Settings.timeZone.hours = 0; | 610 Settings.timeZone.hours = 0; |
610 Settings.timeZone.minutes = 0; | 611 Settings.timeZone.minutes = 0; |
612 Settings.warningBuzzer = 0; | |
611 // no break; | 613 // no break; |
612 default: | 614 default: |
613 pSettings->header = pStandard->header; | 615 pSettings->header = pStandard->header; |
614 break; // no break before!! | 616 break; // no break before!! |
615 } | 617 } |
1315 Settings.divetimeToCreateLogbook = 0; | 1317 Settings.divetimeToCreateLogbook = 0; |
1316 corrections++; | 1318 corrections++; |
1317 setFirstCorrection(parameterId); | 1319 setFirstCorrection(parameterId); |
1318 } | 1320 } |
1319 parameterId++; | 1321 parameterId++; |
1322 | |
1323 if(Settings.warningBuzzer > 1) | |
1324 { | |
1325 Settings.warningBuzzer = 0; | |
1326 corrections++; | |
1327 setFirstCorrection(parameterId); | |
1328 } | |
1329 parameterId++; | |
1330 | |
1331 | |
1320 /* uint8_t serialHigh; | 1332 /* uint8_t serialHigh; |
1321 */ | 1333 */ |
1322 | 1334 |
1323 /* uint8_t serialLow; | 1335 /* uint8_t serialLow; |
1324 */ | 1336 */ |