Update SanityCheck.h

This commit is contained in:
Hebezo 2020-11-04 22:30:58 +01:00 committed by GitHub
parent 91c438fe25
commit b3884f5057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3004,6 +3004,14 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
#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
#ifndef CUTTER_POWER_UNIT
#error "CUTTER_POWER_UNIT is required with a spindle or laser. Please update your Configuration_adv.h."