Skip to content

Commit f7e3d3d

Browse files
Core: Fixing continue announcement of mission progress. Close #761
1 parent 4846145 commit f7e3d3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Core/src/org/droidplanner/core/drone/variables/MissionStats.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ public void setDistanceToWp(double disttowp) {
1818
}
1919

2020
public void setWpno(short seq) {
21-
this.currentWP = seq;
22-
myDrone.events.notifyDroneEvent(DroneEventsType.MISSION_WP_UPDATE);
23-
21+
if (seq != currentWP) {
22+
this.currentWP = seq;
23+
myDrone.events.notifyDroneEvent(DroneEventsType.MISSION_WP_UPDATE);
24+
}
2425
}
2526

2627
public int getCurrentWP() {

0 commit comments

Comments
 (0)