Allow POWER_SUPPLY 0 for no power switch
This commit is contained in:
parent
baa6787393
commit
2faed961ce
3 changed files with 148 additions and 166 deletions
|
|
@ -265,16 +265,15 @@
|
|||
#ifndef POWER_SUPPLY
|
||||
#define POWER_SUPPLY 1
|
||||
#endif
|
||||
// 1 = ATX
|
||||
#if (POWER_SUPPLY == 1)
|
||||
#if (POWER_SUPPLY == 1) // 1 = ATX
|
||||
#define PS_ON_AWAKE LOW
|
||||
#define PS_ON_ASLEEP HIGH
|
||||
#endif
|
||||
// 2 = X-Box 360 203W
|
||||
#if (POWER_SUPPLY == 2)
|
||||
#if (POWER_SUPPLY == 2) // 2 = X-Box 360 203W
|
||||
#define PS_ON_AWAKE HIGH
|
||||
#define PS_ON_ASLEEP LOW
|
||||
#endif
|
||||
HAS_POWER_SWITCH = POWER_SUPPLY > 0 && defined(PS_ON_PIN) && PS_ON_PIN >= 0
|
||||
|
||||
/**
|
||||
* Temp Sensor defines
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue