FEEDRATE_LIMIT fix

This commit is contained in:
Robert Pelnar 2018-07-12 23:51:15 +02:00
parent f9f718e787
commit 68a5a4b74e

View file

@ -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) if(fabs(current_speed[i]) > max_fr)
speed_factor = min(speed_factor, max_fr / fabs(current_speed[i])); 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 #endif //FEEDRATE_LIMIT
#else //TMC2130 #else //TMC2130
if(fabs(current_speed[i]) > max_feedrate[i]) if(fabs(current_speed[i]) > max_feedrate[i])