We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 645b959 commit 6b94df2Copy full SHA for 6b94df2
blades/stm32l4_ws2811.h
@@ -260,7 +260,7 @@ class WS2811EngineSTM32L4 : public WS2811Engine {
260
ws2811_dma_done = false;
261
pin_ = pin;
262
263
- if (g_PWMInstances[instance] != WS2811_TIMER_INSTANCE) {
+ if (instance == PWM_INSTANCE_NONE || g_PWMInstances[instance] != WS2811_TIMER_INSTANCE) {
264
TRACE(BLADE, "proxy");
265
// Proxy mode, make sure GPIO A/B/C doesn't fall asleep
266
RCC->AHB2SMENR |= (RCC_AHB2SMENR_GPIOASMEN | RCC_AHB2SMENR_GPIOBSMEN | RCC_AHB2SMENR_GPIOCSMEN);
0 commit comments