Skip to content

Commit 28f3d91

Browse files
committed
Unlock DotStar SPI before deinit
1 parent 07452b2 commit 28f3d91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

supervisor/shared/status_leds.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ void status_led_deinit() {
196196

197197
#elif defined(MICROPY_HW_APA102_MOSI) && defined(MICROPY_HW_APA102_SCK)
198198
#if CIRCUITPY_BITBANG_APA102
199+
shared_module_bitbangio_spi_unlock(&status_apa102);
199200
shared_module_bitbangio_spi_deinit(&status_apa102);
200201
#else
202+
common_hal_busio_spi_unlock(&status_apa102);
201203
common_hal_busio_spi_deinit(&status_apa102);
202204
#endif
203205

0 commit comments

Comments
 (0)