We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e02354 commit dc6c438Copy full SHA for dc6c438
Marlin/src/module/ft_motion.h
@@ -287,7 +287,7 @@ class FTMotion {
287
#undef _HANDLE_DIR_CHANGES
288
}
289
290
- if (stepper_plan.advance_dividend_q0_32 == 0) {
+ if ((bool)stepper_plan.advance_dividend_q0_32) {
291
// don't waste time in zero motion traj points
292
bresenham_iterations_pending = 0;
293
step_bits = 0;
Marlin/src/module/ft_types.h
@@ -47,7 +47,7 @@ enum dynFreqMode_t : uint8_t {
47
typedef struct stepper_plan {
48
AxisBits dir_bits;
49
xyze_ulong_t advance_dividend_q0_32{0};
50
- void reset() { advance_dividend_q0_32 = 0; }
+ void reset() { advance_dividend_q0_32.reset(); }
51
} stepper_plan_t;
52
53
// Emitters for code that only cares about shaped XYZE
0 commit comments