Update powersupply_on in power_on/off (#10014)

Fix #10004
This commit is contained in:
Scott Lahteine 2018-03-08 18:56:41 -06:00 committed by GitHub
parent 9c667b5436
commit e5e3c3ff35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 15 deletions

View file

@ -86,11 +86,11 @@ void Power::check() {
void Power::power_on() {
lastPowerOn = millis();
OUT_WRITE(PS_ON_PIN, PS_ON_AWAKE);
PSU_PIN_ON();
}
void Power::power_off() {
OUT_WRITE(PS_ON_PIN, PS_ON_ASLEEP);
PSU_PIN_OFF();
}
#endif // AUTO_POWER_CONTROL