From 68a5a4b74ebb2715d3a86f31eb07b6f2b1587fbb Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Thu, 12 Jul 2018 23:51:15 +0200 Subject: [PATCH] FEEDRATE_LIMIT fix --- Firmware/planner.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Firmware/planner.cpp b/Firmware/planner.cpp index 4bacbeb8..c88a0a83 100644 --- a/Firmware/planner.cpp +++ b/Firmware/planner.cpp @@ -971,6 +971,9 @@ Having the real displacement of the head, we can calculate the total movement le } if(fabs(current_speed[i]) > max_fr) speed_factor = min(speed_factor, max_fr / fabs(current_speed[i])); +#else //FEEDRATE_LIMIT + if(fabs(current_speed[i]) > max_feedrate[i]) + speed_factor = min(speed_factor, max_feedrate[i] / fabs(current_speed[i])); #endif //FEEDRATE_LIMIT #else //TMC2130 if(fabs(current_speed[i]) > max_feedrate[i])