mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-08-09 23:05:00 -06:00
Power signal control definitions for ATX and others
This commit is contained in:
parent
3a1cd30ce1
commit
f3c1fc70a9
3 changed files with 23 additions and 2 deletions
|
@ -1136,7 +1136,7 @@ void process_commands()
|
|||
#if (PS_ON_PIN > -1)
|
||||
case 80: // M80 - ATX Power On
|
||||
SET_OUTPUT(PS_ON_PIN); //GND
|
||||
WRITE(PS_ON_PIN, LOW);
|
||||
WRITE(PS_ON_PIN, PS_ON_AWAKE);
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
@ -1147,7 +1147,7 @@ void process_commands()
|
|||
suicide();
|
||||
#elif (PS_ON_PIN > -1)
|
||||
SET_OUTPUT(PS_ON_PIN);
|
||||
WRITE(PS_ON_PIN, HIGH);
|
||||
WRITE(PS_ON_PIN, PS_ON_ASLEEP);
|
||||
#endif
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue