Update planner.h

fix minimal_step_rate calc
This commit is contained in:
John Robertson
2024-03-17 17:06:28 +00:00
committed by InsanityAutomation
parent 471924e7fd
commit 4b2f682d59
+1 -1
View File
@@ -261,7 +261,7 @@ typedef struct PlannerBlock {
final_adv_steps; // Advance steps for exit speed pressure
#endif
#define MINIMAL_STEP_RATE _MIN((1 / (STEPPER_TIMER_RATE / HAL_TIMER_TYPE_MAX), 1) // to prevent timer overflow?
#define MINIMAL_STEP_RATE _MAX((STEPPER_TIMER_RATE / HAL_TIMER_TYPE_MAX), 1) // steps/s max. To prevent timer overflow, slowest is 1 step/s
uint32_t nominal_rate, // The nominal step rate for this block in step_events/sec
initial_rate, // The jerk-adjusted step rate at start of block
final_rate, // The minimal rate at exit