Simplify checks

This commit is contained in:
Scott Lahteine 2020-11-08 00:29:11 -06:00 committed by GitHub
parent f6e81b57e9
commit 62bdca60ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'." #error "PSU_CONTROL requires PSU_ACTIVE_STATE to be defined as 'HIGH' or 'LOW'."
#elif !PIN_EXISTS(PS_ON) #elif !PIN_EXISTS(PS_ON)
#error "PSU_CONTROL requires PS_ON_PIN." #error "PSU_CONTROL requires PS_ON_PIN."
#elif POWER_OFF_TIMEOUT < 0
#error "POWER_OFF_TIMEOUT must be a positive value."
#endif #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 #endif
#if HAS_CUTTER #if HAS_CUTTER