|
|
@ -220,9 +220,9 @@ void setup_powerhold() {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if HAS_POWER_SWITCH
|
|
|
|
#if HAS_POWER_SWITCH
|
|
|
|
#if ENABLED(PS_DEFAULT_OFF)
|
|
|
|
#if ENABLED(PS_DEFAULT_OFF)
|
|
|
|
PSU_OFF();
|
|
|
|
powersupply_on = true; PSU_OFF();
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
PSU_ON();
|
|
|
|
powersupply_on = false; PSU_ON();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -231,10 +231,8 @@ void setup_powerhold() {
|
|
|
|
* Stepper Reset (RigidBoard, et.al.)
|
|
|
|
* Stepper Reset (RigidBoard, et.al.)
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#if HAS_STEPPER_RESET
|
|
|
|
#if HAS_STEPPER_RESET
|
|
|
|
void disableStepperDrivers() {
|
|
|
|
void disableStepperDrivers() { OUT_WRITE(STEPPER_RESET_PIN, LOW); } // Drive down to keep motor driver chips in reset
|
|
|
|
OUT_WRITE(STEPPER_RESET_PIN, LOW); // drive it down to hold in reset motor driver chips
|
|
|
|
void enableStepperDrivers() { SET_INPUT(STEPPER_RESET_PIN); } // Set to input, allowing pullups to pull the pin high
|
|
|
|
}
|
|
|
|
|
|
|
|
void enableStepperDrivers() { SET_INPUT(STEPPER_RESET_PIN); } // set to input, which allows it to be pulled high by pullups
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(EXPERIMENTAL_I2CBUS) && I2C_SLAVE_ADDRESS > 0
|
|
|
|
#if ENABLED(EXPERIMENTAL_I2CBUS) && I2C_SLAVE_ADDRESS > 0
|
|
|
|