Browse Source

Small efficiency improvement

k4be 2 years ago
parent
commit
015c25ed33
1 changed files with 1 additions and 1 deletions
  1. 1 1
      soft/gpx.c

+ 1 - 1
soft/gpx.c

@@ -74,8 +74,8 @@ struct location_s *prev_points_get(unsigned char index){
 	unsigned char i, addr = gpx.prev_points.start;
 	for(i=0; i<index; i++){
 		addr++;
-		addr %= PREV_POINTS_LENGTH;
 	}
+	addr %= PREV_POINTS_LENGTH;
 	return &gpx.prev_points.data[addr];
 }