Skip to content

Commit

Permalink
update map.js
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsosousah committed Jun 12, 2024
1 parent 678db03 commit e841a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,14 @@ function startLocationDotRotation() {
if (!pos) return;

// Reset offset if under 5kph
/*if (!(gpsHeading && speed >= (5 * 1000) / (60 * 60))) {
if (!gpsHeading || speed = 0) {
// Reset offset
deviceHeadingOffset = 0;

// Dev info
document.getElementById("headingSource").innerHTML = "Compass";
document.getElementById("headingSource").style.backgroundColor = "lightblue";
}*/
}

// Calculate final heading
heading = compassHeading + deviceHeadingOffset;
Expand Down

0 comments on commit e841a2e

Please sign in to comment.