mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-18 23:49:49 +00:00
parent
69a5e0c136
commit
61f3051982
1 changed files with 1 additions and 1 deletions
|
@ -12952,7 +12952,7 @@ void prepare_move_to_destination() {
|
|||
angular_travel = RADIANS(360);
|
||||
|
||||
const float flat_mm = radius * angular_travel,
|
||||
mm_of_travel = linear_travel ? HYPOT(flat_mm, linear_travel) : flat_mm;
|
||||
mm_of_travel = linear_travel ? HYPOT(flat_mm, linear_travel) : FABS(flat_mm);
|
||||
if (mm_of_travel < 0.001) return;
|
||||
|
||||
uint16_t segments = FLOOR(mm_of_travel / (MM_PER_ARC_SEGMENT));
|
||||
|
|
Loading…
Reference in a new issue