Quellcode durchsuchen

Fix an acceleration anomaly by making locals signed

Scott Lahteine vor 8 Jahren
Ursprung
Commit
e38baaa23e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      Marlin/planner.cpp

+ 1
- 1
Marlin/planner.cpp Datei anzeigen

@@ -941,7 +941,7 @@ float junction_deviation = 0.1;
941 941
 
942 942
   // Compute and limit the acceleration rate for the trapezoid generator.
943 943
   float steps_per_mm = block->step_event_count / block->millimeters;
944
-  unsigned long bsx = block->steps[X_AXIS], bsy = block->steps[Y_AXIS], bsz = block->steps[Z_AXIS], bse = block->steps[E_AXIS];
944
+  long bsx = block->steps[X_AXIS], bsy = block->steps[Y_AXIS], bsz = block->steps[Z_AXIS], bse = block->steps[E_AXIS];
945 945
   if (bsx == 0 && bsy == 0 && bsz == 0) {
946 946
     block->acceleration_st = ceil(retract_acceleration * steps_per_mm); // convert to: acceleration steps/sec^2
947 947
   }

Laden…
Abbrechen
Speichern