comparison 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
comparison
equal deleted inserted replaced
966:90edc237d60f 967:9b418e63dbc2
919 internalLogCompassHeading(clearHeading, true, true); 919 internalLogCompassHeading(clearHeading, true, true);
920 } 920 }
921 921
922 void setCompassHeading(uint16_t heading) 922 void setCompassHeading(uint16_t heading)
923 { 923 {
924 stateUsedWrite->diveSettings.compassHeading = ((heading - 360) % 360) + 360; 924 stateUsedWrite->diveSettings.compassHeading = ((heading - 360) % 360) + 360;
925 925
926 internalLogCompassHeading(heading, true, false); 926 internalLogCompassHeading(heading, true, false);
927 } 927 }
928 928
929 929