File tree 1 file changed +3
-3
lines changed
Marlin/src/gcode/feature/input_shaping
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,13 @@ void GcodeSuite::M593() {
72
72
73
73
if (parser.seen (' F' )) {
74
74
const float freq = parser.value_float ();
75
- constexpr float max_freq = float (uint32_t (STEPPER_TIMER_RATE) / 2 ) / shaping_time_t (-2 );
76
- if (freq == 0 .0f || freq > max_freq ) {
75
+ constexpr float min_freq = float (uint32_t (STEPPER_TIMER_RATE) / 2 ) / shaping_time_t (-2 );
76
+ if (freq == 0 .0f || freq > min_freq ) {
77
77
if (for_X) stepper.set_shaping_frequency (X_AXIS, freq);
78
78
if (for_Y) stepper.set_shaping_frequency (Y_AXIS, freq);
79
79
}
80
80
else
81
- SERIAL_ECHOLNPGM (" ?Frequency (F) must be greater than " , max_freq , " or 0 to disable" );
81
+ SERIAL_ECHOLNPGM (" ?Frequency (F) must be greater than " , min_freq , " or 0 to disable" );
82
82
}
83
83
}
84
84
You can’t perform that action at this time.
0 commit comments