Skip to content

Commit

Permalink
don't include speed and position if something else changed
Browse files Browse the repository at this point in the history
  • Loading branch information
derklaro committed Dec 29, 2024
1 parent 17d7663 commit 0e95265
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,12 @@ public boolean isDirty() {
}

// insert information about the new speed of the journey
if (this.speed != null) {
if (!noSpeedAndPosition && this.speed != null) {
updateFrameBuilder.setSpeed(this.speed.value());
}

// insert information about the new position of the journey
if (this.position != null) {
if (!noSpeedAndPosition && this.position != null) {
var position = this.position.value();
var updatedPosition = GeoPosition.newBuilder()
.setLatitude(position.getLatitude())
Expand Down

0 comments on commit 0e95265

Please sign in to comment.