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:
committed by
Scott Lahteine
parent
44e4f853c8
commit
eb6dec03bd
@ -741,7 +741,7 @@
|
||||
#ifndef LED_PIN
|
||||
#define LED_PIN -1
|
||||
#endif
|
||||
#if POWER_SUPPLY == 0 || !defined(PS_ON_PIN)
|
||||
#if DISABLED(PSU_CONTROL) || !defined(PS_ON_PIN)
|
||||
#undef PS_ON_PIN
|
||||
#define PS_ON_PIN -1
|
||||
#endif
|
||||
|
@ -44,9 +44,9 @@
|
||||
//
|
||||
// PSU / SERVO
|
||||
//
|
||||
// If POWER_SUPPLY is specified, always hijack Servo 3
|
||||
// If PSU_CONTROL is specified, always hijack Servo 3
|
||||
//
|
||||
#if POWER_SUPPLY > 0
|
||||
#if ENABLED(PSU_CONTROL)
|
||||
#define SERVO3_PIN -1
|
||||
#define PS_ON_PIN 4
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user