diff Discovery/Inc/tStructure.h @ 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 4abfb8a2a435
children 4c41d9a18c7f
line wrap: on
line diff
--- a/Discovery/Inc/tStructure.h	Thu Aug 10 21:35:34 2023 +0200
+++ b/Discovery/Inc/tStructure.h	Mon Aug 21 17:20:07 2023 +0200
@@ -304,32 +304,34 @@
 #define StMSYS1_DST			_MB(2,8,1,6,0)
 #define StMSYS1_12HR    _MB(2,8,1,7,0)
 
-#define StMSYS2_English	_MB(2,8,2,1,0)
-#define StMSYS2_German	_MB(2,8,2,2,0)
-#define StMSYS2_French	_MB(2,8,2,3,0)
-#define StMSYS2_Italian	_MB(2,8,2,4,0)
-#define StMSYS2_Espanol	_MB(2,8,2,5,0)
+#define StMSYS_Timer	_MB(2,8,2,1,0)
 
-#define StMSYS3_Units		_MB(2,8,3,1,0)
-#define StMSYS3_Colors	_MB(2,8,3,2,0)
-#define StMSYS3_Debug		_MB(2,8,3,3,0)
+#define StMSYS2_English	_MB(2,8,3,1,0)
+#define StMSYS2_German	_MB(2,8,3,2,0)
+#define StMSYS2_French	_MB(2,8,3,3,0)
+#define StMSYS2_Italian	_MB(2,8,3,4,0)
+#define StMSYS2_Espanol	_MB(2,8,3,5,0)
 
-#define StMSYS4_Info		_MB(2,8,4,1,0)
+#define StMSYS3_Units		_MB(2,8,4,1,0)
+#define StMSYS3_Colors	_MB(2,8,4,2,0)
+#define StMSYS3_Debug		_MB(2,8,4,3,0)
+
+#define StMSYS4_Info		_MB(2,8,5,1,0)
 
-#define StMSYS5_Exit			_MB(2,8,5,1,0)
-#define StMSYS5_LogbookOffset	_MB(2,8,5,7,0)
-#define StMSYS5_ResetAll		_MB(2,8,5,2,0)
-#define StMSYS5_ResetDeco		_MB(2,8,5,3,0)
-#define StMSYS5_Reboot			_MB(2,8,5,4,0)
-#define StMSYS5_Maintenance		_MB(2,8,5,5,0)
-#define StMSYS5_ResetLogbook	_MB(2,8,5,6,0)
-#define StMSYS5_SetBattCharge	_MB(2,8,5,7,0)
-#define StMSYS5_RebootRTE		_MB(2,8,5,8,0)
-#define StMSYS5_RebootMainCPU	_MB(2,8,5,9,0)
-#define StMSYS5_ScreenTest		_MB(2,8,5,10,0)
-#define StMSYS5_SetFactoryBC	_MB(2,8,5,11,0)
-#define StMSYS5_ResetBluetooth	_MB(2,8,5,12,0)
-#define StMSYS5_SetSampleIndx   _MB(2,8,5,13,0)
+#define StMSYS5_Exit			_MB(2,8,6,1,0)
+#define StMSYS5_LogbookOffset	_MB(2,8,6,7,0)
+#define StMSYS5_ResetAll		_MB(2,8,6,2,0)
+#define StMSYS5_ResetDeco		_MB(2,8,6,3,0)
+#define StMSYS5_Reboot			_MB(2,8,6,4,0)
+#define StMSYS5_Maintenance		_MB(2,8,6,5,0)
+#define StMSYS5_ResetLogbook	_MB(2,8,6,6,0)
+#define StMSYS5_SetBattCharge	_MB(2,8,6,7,0)
+#define StMSYS5_RebootRTE		_MB(2,8,6,8,0)
+#define StMSYS5_RebootMainCPU	_MB(2,8,6,9,0)
+#define StMSYS5_ScreenTest		_MB(2,8,6,10,0)
+#define StMSYS5_SetFactoryBC	_MB(2,8,6,11,0)
+#define StMSYS5_ResetBluetooth	_MB(2,8,6,12,0)
+#define StMSYS5_SetSampleIndx   _MB(2,8,6,13,0)
 
  /* PAGE 9 */