Merge pull request #630 from dumle29/Marlin_v1
PS_ON configurable boot state
This commit is contained in:
commit
4382068f92
2 changed files with 8 additions and 1 deletions
|
@ -79,6 +79,9 @@
|
||||||
|
|
||||||
#define POWER_SUPPLY 1
|
#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 ============================
|
//=============================Thermal Settings ============================
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
|
@ -366,7 +366,11 @@ void setup_powerhold()
|
||||||
#endif
|
#endif
|
||||||
#if defined(PS_ON_PIN) && PS_ON_PIN > -1
|
#if defined(PS_ON_PIN) && PS_ON_PIN > -1
|
||||||
SET_OUTPUT(PS_ON_PIN);
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue