mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 12:04:19 +00:00
PS_ON configurable boot state
Allows the user to select wheter or not the PSU should be turned on or kept in standby when marlin boots
This commit is contained in:
parent
47854ff5ce
commit
f941203172
@ -79,6 +79,9 @@
|
||||
|
||||
#define POWER_SUPPLY 1
|
||||
|
||||
// Define this to have the electronics keep the powersupply off on startup. If you don't know what this is leave it.
|
||||
// #define PS_DEFAULT_OFF
|
||||
|
||||
//===========================================================================
|
||||
//=============================Thermal Settings ============================
|
||||
//===========================================================================
|
||||
|
@ -366,7 +366,11 @@ void setup_powerhold()
|
||||
#endif
|
||||
#if defined(PS_ON_PIN) && PS_ON_PIN > -1
|
||||
SET_OUTPUT(PS_ON_PIN);
|
||||
WRITE(PS_ON_PIN, PS_ON_AWAKE);
|
||||
#if defined(PS_DEFAULT_OFF)
|
||||
WRITE(PS_ON_PIN, PS_ON_ASLEEP);
|
||||
#else
|
||||
WRITE(PS_ON_PIN, PS_ON_AWAKE);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user