Suspend Servos for STM32+NeoPixel (#19963)

This commit is contained in:
Jason Smith
2020-12-04 22:02:58 -08:00
committed by GitHub
parent 21ee7b1c86
commit 2c8f566231
5 changed files with 15 additions and 14 deletions

View File

@ -105,6 +105,8 @@ public:
}
static inline void show() {
// Some platforms cannot maintain PWM output when NeoPixel disables interrupts for long durations.
TERN_(HAS_PAUSE_SERVO_OUTPUT, PAUSE_SERVO_OUTPUT());
adaneo1.show();
#if PIN_EXISTS(NEOPIXEL2)
#if CONJOINED_NEOPIXEL
@ -115,6 +117,7 @@ public:
adaneo1.setPin(NEOPIXEL_PIN);
#endif
#endif
TERN_(HAS_PAUSE_SERVO_OUTPUT, RESUME_SERVO_OUTPUT());
}
#if 0