comparison Discovery/Src/tMenuEditCustom.c @ 805:dd7ce655db26

Adds a simple countdown timer, available as a custom view in surface and dive mode. This can be used to time safety stops, or to prebreathe a CCR (or to boil your breakfast eggs if you are so inclined). The duration of the timer is configurable from 1 second to 9:59 minutes in the System menu. The timer is started by switching to the custom view, and remaining on it until a 10 second delay has elapsed. Once the timer has started the custom view can be changed and the timer will continue running in the background. After the timer has run out 'Finished' will be shown for 10 seconds in the timer custom view, and then automatic switching of custom views (if configured) resumes. In surface mode the dive computer will not go to sleep while the timer is running, and a mini timer will be shown when the timer custom view is not showing. (mikeller)
author heinrichsweikamp
date Mon, 21 Aug 2023 17:20:07 +0200
parents 70e9c83ecf22
children ce8f71217f45
comparison
equal deleted inserted replaced
804:391b3d420a39 805:dd7ce655db26
491 text = TXT2BYTE_Info; 491 text = TXT2BYTE_Info;
492 break; 492 break;
493 case CVIEW_SummaryOfLeftCorner: 493 case CVIEW_SummaryOfLeftCorner:
494 text = TXT2BYTE_Summary; 494 text = TXT2BYTE_Summary;
495 break; 495 break;
496 case CVIEW_Timer:
497 text = TXT2BYTE_Timer;
498 break;
496 case CVIEW_noneOrDebug: 499 case CVIEW_noneOrDebug:
497 text = TXT2BYTE_DispNoneDbg; 500 text = TXT2BYTE_DispNoneDbg;
498 break; 501 break;
499 case CVIEW_T3_MaxDepth: 502 case CVIEW_T3_MaxDepth:
500 text = TXT2BYTE_MaxDepth; 503 text = TXT2BYTE_MaxDepth;
579 break; 582 break;
580 case CVIEW_EADTime: 583 case CVIEW_EADTime:
581 newValue = CVIEW_SummaryOfLeftCorner; 584 newValue = CVIEW_SummaryOfLeftCorner;
582 break; 585 break;
583 case CVIEW_SummaryOfLeftCorner: 586 case CVIEW_SummaryOfLeftCorner:
587 newValue = CVIEW_Timer;
588 break;
589 case CVIEW_Timer:
584 newValue = CVIEW_noneOrDebug; 590 newValue = CVIEW_noneOrDebug;
585 break; 591 break;
586 case CVIEW_noneOrDebug: 592 case CVIEW_noneOrDebug:
587 default: 593 default:
588 newValue = CVIEW_sensors; 594 newValue = CVIEW_sensors;