parent
9c667b5436
commit
e5e3c3ff35
4 changed files with 16 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue