From 0afa4268eadf0010b3cff6fa58c79dc45f62a7cb Mon Sep 17 00:00:00 2001 From: afonsosousah Date: Thu, 13 Jun 2024 14:29:18 +0100 Subject: [PATCH] update map.js --- scripts/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/map.js b/scripts/map.js index 089a728..39d0111 100644 --- a/scripts/map.js +++ b/scripts/map.js @@ -420,7 +420,7 @@ function getLocation(zoom = true) { } // Use GPS heading if user is ruffly in a straight line for the last 5 seconds and over 12kph - if (gpsHeading && inStraightLine && speed >= (12 * 1000) / (60 * 60)) { + if (gpsHeading && speed >= (12 * 1000) / (60 * 60)) { // Calculate offset between gps heading and compass heading deviceHeadingOffset = gpsHeading - compassHeading;