Simplify power supply naming logic (#14488)

Co-Authored-By: Tim Moore <tim.moore@lightbend.com>
Co-Authored-By: AnHardt <github@kitelab.de>
This commit is contained in:
Tim Moore
2019-07-04 23:58:34 -07:00
committed by Scott Lahteine
parent 44e4f853c8
commit eb6dec03bd
119 changed files with 1141 additions and 1460 deletions

View File

@ -312,22 +312,20 @@
// @section machine
/**
* Select your power supply here. Use 0 if you haven't connected the PS_ON_PIN
* Power Supply Control
*
* 0 = No Power Switch
* 1 = ATX
* 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
*
* :{ 0:'No power switch', 1:'ATX', 2:'X-Box 360' }
* Enable and connect the power supply to the PS_ON_PIN.
* Specify whether the power supply is active HIGH or active LOW.
*/
#define POWER_SUPPLY 1
#define PSU_CONTROL
//#define PSU_NAME "Power Supply"
#if POWER_SUPPLY > 0
// Enable this option to leave the PSU off at startup.
// Power to steppers and heaters will need to be turned on with M80.
//#define PS_DEFAULT_OFF
#if ENABLED(PSU_CONTROL)
#define PSU_ACTIVE_HIGH false // Set 'false' for ATX (1), 'true' for X-Box (2)
//#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin
//#define PS_DEFAULT_OFF // Keep power off until enabled directly with M80
//#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin
#if ENABLED(AUTO_POWER_CONTROL)
#define AUTO_POWER_FANS // Turn on PSU if fans need power
#define AUTO_POWER_E_FANS
@ -337,7 +335,6 @@
//#define AUTO_POWER_CHAMBER_TEMP 30 // (°C) Turn on PSU over this temperature
#define POWER_TIMEOUT 30
#endif
#endif
// @section temperature