comparison Discovery/Src/settings.c @ 654:890440ab993a

Introduced new menu tab for addition CCR options: The Xtra menu tab was only used in dive mode before. The tab is now enabled in surface mode and provide access to scrubber timer functionality. To enables this infrastructure (structure, multilanguage strings etc.) have been added to the sourcecode.
author Ideenmodellierer
date Sun, 25 Apr 2021 20:41:19 +0200
parents f6212495f34f
children 9513a92b293b
comparison
equal deleted inserted replaced
653:269e57ac4e56 654:890440ab993a
324 .ppo2sensors_calibCoeff[2] = 0.0, 324 .ppo2sensors_calibCoeff[2] = 0.0,
325 .amPMTime = 0, 325 .amPMTime = 0,
326 .autoSetpoint = 0, 326 .autoSetpoint = 0,
327 .scrubTimerMax = 0, 327 .scrubTimerMax = 0,
328 .scrubTimerCur = 0, 328 .scrubTimerCur = 0,
329 .scrubTimerMode = SCRUB_TIMER_OFF,
329 }; 330 };
330 331
331 /* Private function prototypes -----------------------------------------------*/ 332 /* Private function prototypes -----------------------------------------------*/
332 uint8_t checkValue(uint8_t value,uint8_t from, uint8_t to); 333 uint8_t checkValue(uint8_t value,uint8_t from, uint8_t to);
333 334
1453 { 1454 {
1454 Settings.scrubTimerMax = 0; 1455 Settings.scrubTimerMax = 0;
1455 Settings.scrubTimerCur = 0; 1456 Settings.scrubTimerCur = 0;
1456 corrections++; 1457 corrections++;
1457 } 1458 }
1458 1459 if(Settings.scrubTimerMode > SCRUB_TIMER_END)
1460 {
1461 Settings.scrubTimerMode = SCRUB_TIMER_OFF;
1462 corrections++;
1463 }
1459 if(corrections > 255) 1464 if(corrections > 255)
1460 return 255; 1465 return 255;
1461 else 1466 else
1462 return (uint8_t)corrections; 1467 return (uint8_t)corrections;
1463 } 1468 }