Fix Spindle/Laser Control menu (#20347)
This commit is contained in:
committed by
Scott Lahteine
parent
edb2a83e71
commit
3e68e4b418
@@ -118,7 +118,7 @@ void SpindleLaser::apply_power(const uint8_t opwr) {
|
||||
// Set the spindle direction and apply immediately
|
||||
// Stop on direction change if SPINDLE_STOP_ON_DIR_CHANGE is enabled
|
||||
//
|
||||
void SpindleLaser::set_direction(const bool reverse) {
|
||||
void SpindleLaser::set_reverse(const bool reverse) {
|
||||
const bool dir_state = (reverse == SPINDLE_INVERT_DIR); // Forward (M3) HIGH when not inverted
|
||||
if (TERN0(SPINDLE_STOP_ON_DIR_CHANGE, enabled()) && READ(SPINDLE_DIR_PIN) != dir_state) disable();
|
||||
WRITE(SPINDLE_DIR_PIN, dir_state);
|
||||
|
||||
Reference in New Issue
Block a user