[2.0.x] Enable / disable PSU automatically (#9503)

This commit is contained in:
Scott Lahteine
2018-02-06 00:22:30 -06:00
committed by GitHub
parent db1ace5e82
commit b5e92f4f90
61 changed files with 664 additions and 4 deletions

View File

@ -236,9 +236,9 @@ void setup_powerhold() {
#endif
#if HAS_POWER_SWITCH
#if ENABLED(PS_DEFAULT_OFF)
OUT_WRITE(PS_ON_PIN, PS_ON_ASLEEP);
PSU_OFF();
#else
OUT_WRITE(PS_ON_PIN, PS_ON_AWAKE);
PSU_ON();
#endif
#endif
}