comparison Discovery/Src/data_central.c @ 774:6169309d6eb9

more menu items for the compass menu: Delete bearing, and reset to land based bearing. I have also re-enabled the real time bearing display in the menu - makes it easier to set the correct bearing. (mikeller)
author heinrichsweikamp
date Wed, 10 May 2023 16:25:39 +0200
parents 29d9b5bc7946
children 45b8f3c2acce
comparison
equal deleted inserted replaced
773:2c243233c999 774:6169309d6eb9
858 { 858 {
859 retVal = 1; 859 retVal = 1;
860 } 860 }
861 return retVal; 861 return retVal;
862 } 862 }
863
864 void setCompassHeading(uint16_t heading)
865 {
866
867 // if heading == 0 set compassHeading to 360, because compassHeading == 0 means 'off'
868
869 stateUsedWrite->diveSettings.compassHeading = ((heading - 360) % 360) + 360;
870 }