diff Discovery/Src/data_central.c @ 967:9b418e63dbc2 Evo_2_23 tip

Add a 'Reverse' action to the compass heading dive menu. This allows the compass heading to be reversed for the return leg of the dive - as a bonus the reversal will be logged, establishing at which point in the log the dive was turned (mikeller)
author heinrichsweikamp
date Wed, 15 Jan 2025 16:38:27 +0100
parents c6b858f2e025
children
line wrap: on
line diff
--- a/Discovery/Src/data_central.c	Mon Jan 13 20:42:24 2025 +0100
+++ b/Discovery/Src/data_central.c	Wed Jan 15 16:38:27 2025 +0100
@@ -921,7 +921,7 @@
 
 void setCompassHeading(uint16_t heading)
 {
-    stateUsedWrite->diveSettings.compassHeading =  ((heading - 360) % 360) + 360;
+    stateUsedWrite->diveSettings.compassHeading = ((heading - 360) % 360) + 360;
 
     internalLogCompassHeading(heading, true, false);
 }