Skip to content

Commit ebcf26e

Browse files
committed
🧑‍💻 M593 F "min" freq
1 parent 0cf2443 commit ebcf26e

File tree

1 file changed

+3
-3
lines changed
  • Marlin/src/gcode/feature/input_shaping

1 file changed

+3
-3
lines changed

Marlin/src/gcode/feature/input_shaping/M593.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ void GcodeSuite::M593() {
7272

7373
if (parser.seen('F')) {
7474
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) {
7777
if (for_X) stepper.set_shaping_frequency(X_AXIS, freq);
7878
if (for_Y) stepper.set_shaping_frequency(Y_AXIS, freq);
7979
}
8080
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");
8282
}
8383
}
8484

0 commit comments

Comments
 (0)