Simplify checks
This commit is contained in:
parent
f6e81b57e9
commit
62bdca60ef
1 changed files with 2 additions and 10 deletions
|
|
@ -2999,17 +2999,9 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
|
|||
#error "PSU_CONTROL requires PSU_ACTIVE_STATE to be defined as 'HIGH' or 'LOW'."
|
||||
#elif !PIN_EXISTS(PS_ON)
|
||||
#error "PSU_CONTROL requires PS_ON_PIN."
|
||||
#elif POWER_OFF_TIMEOUT < 0
|
||||
#error "POWER_OFF_TIMEOUT must be a positive value."
|
||||
#endif
|
||||
#elif ENABLED(AUTO_POWER_CONTROL)
|
||||
#error "AUTO_POWER_CONTROL requires PSU_CONTROL."
|
||||
#endif
|
||||
|
||||
#if POWER_OFF_TIMEOUT > 0
|
||||
#if DISABLED(AUTO_POWER_CONTROL)
|
||||
#error "POWER_OFF_TIMEOUT requires AUTO_POWER_CONTROL"
|
||||
#endif
|
||||
#elif POWER_OFF_TIMEOUT < 0
|
||||
#error "POWER_OFF_TIMEOUT must be greater or equal 0"
|
||||
#endif
|
||||
|
||||
#if HAS_CUTTER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue