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 f72fffd commit e3c4aebCopy full SHA for e3c4aeb
ports/stm/common-hal/audiopwmio/PWMAudioOut.c
@@ -342,7 +342,6 @@ void common_hal_audiopwmio_pwmaudioout_stop(audiopwmio_pwmaudioout_obj_t *self)
342
tim_handle.Instance->CR1 &= ~TIM_CR1_CEN;
343
stm_peripherals_timer_free(tim_handle.Instance);
344
345
- active_audio = NULL;
346
self->stopping = false;
347
self->paused = false;
348
@@ -352,6 +351,8 @@ void common_hal_audiopwmio_pwmaudioout_stop(audiopwmio_pwmaudioout_obj_t *self)
352
351
set_pin(1, GPIO_PIN_RESET);
353
}
354
+ active_audio = NULL;
355
+
356
// Cannot free buffers here because we may be called from
357
// the interrupt handler, and the heap is not reentrant.
358
0 commit comments