Browse Source

Use PSU powerup delay for all powerups (#16065)

pull/1/head
ManuelMcLure 5 years ago
committed by Scott Lahteine
parent
commit
c061656659
  1. 2
      Marlin/src/feature/power.cpp
  2. 2
      Marlin/src/inc/Conditionals_post.h
  3. 2
      Marlin/src/inc/SanityCheck.h

2
Marlin/src/feature/power.cpp

@ -109,7 +109,7 @@ void Power::power_on() {
PSU_PIN_ON();
#if HAS_TRINAMIC
delay(100); // Wait for power to settle
delay(PSU_POWERUP_DELAY); // Wait for power to settle
restore_stepper_drivers();
#endif
}

2
Marlin/src/inc/Conditionals_post.h

@ -333,7 +333,7 @@
#endif
#endif
#if !defined(PSU_POWERUP_DELAY) && ENABLED(PSU_CONTROL) && DISABLED(AUTO_POWER_CONTROL)
#if !defined(PSU_POWERUP_DELAY) && ENABLED(PSU_CONTROL)
#define PSU_POWERUP_DELAY 100
#endif

2
Marlin/src/inc/SanityCheck.h

@ -2486,8 +2486,6 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
#error "PSU_CONTROL requires PSU_ACTIVE_HIGH to be defined as 'true' or 'false'."
#elif !PIN_EXISTS(PS_ON)
#error "PSU_CONTROL requires PS_ON_PIN."
#elif defined(PSU_POWERUP_DELAY) && ENABLED(AUTO_POWER_CONTROL)
#error "PSU_POWERUP_DELAY has no effect with AUTO_POWER_CONTROL enabled."
#endif
#elif ENABLED(AUTO_POWER_CONTROL)
#error "AUTO_POWER_CONTROL requires PSU_CONTROL."

Loading…
Cancel
Save