diff options
| author | Bryan Siepert <bsiepert@gmail.com> | 2018-03-08 20:39:47 -0800 |
|---|---|---|
| committer | Bryan Siepert <bsiepert@gmail.com> | 2018-03-08 20:39:47 -0800 |
| commit | 942b7ffbe0f0ec04a11e65c1586adf959b9eea7a (patch) | |
| tree | 3ee298a665a40cb5a08bc760e5c2ef001555025a /supervisor | |
| parent | 402e71dcddfa30e140e506f500b832463bf685ca (diff) | |
fixes hardware dotstar support for 3.0 and addresses issue #514
Diffstat (limited to 'supervisor')
| -rw-r--r-- | supervisor/shared/rgb_led_status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/supervisor/shared/rgb_led_status.c b/supervisor/shared/rgb_led_status.c index 2899c1f5d..5b55c1ba2 100644 --- a/supervisor/shared/rgb_led_status.c +++ b/supervisor/shared/rgb_led_status.c @@ -70,11 +70,11 @@ void rgb_led_status_init() { MICROPY_HW_APA102_MOSI, mp_const_none); #else - if (status_apa102.current_baudrate > 0) { + if (!common_hal_busio_spi_deinited(&status_apa102)) { // Don't use spi_deinit because that leads to infinite // recursion because reset_pin may call // rgb_led_status_init. - spi_disable(&status_apa102.spi_master_instance); + spi_m_sync_disable(&status_apa102.spi_desc); } common_hal_busio_spi_construct(&status_apa102, MICROPY_HW_APA102_SCK, |
