diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-10-01 10:54:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-01 10:54:48 -0700 |
| commit | f303fb3d4103871e096699d5dcd4b419ac8acc3b (patch) | |
| tree | 0a02bc7f083d2b7a5ec47e470d201a661cb7c466 /shared-module | |
| parent | be6e6eabd27e5e301decc93496a9fbc59f0f6bda (diff) | |
| parent | a6cfa507b6db0365c868acddd850d9f2d5c6d424 (diff) | |
Merge pull request #3495 from tannewt/esp32s2_metro
Add Metro ESP32S2
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/board/__init__.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared-module/board/__init__.c b/shared-module/board/__init__.c index fb4f731b8..39b68a0f1 100644 --- a/shared-module/board/__init__.c +++ b/shared-module/board/__init__.c @@ -167,7 +167,9 @@ void reset_board_busses(void) { } #endif // make sure SPI lock is not held over a soft reset - common_hal_busio_spi_unlock(&spi_obj); + if (spi_singleton != NULL) { + common_hal_busio_spi_unlock(spi_singleton); + } if (!display_using_spi) { spi_singleton = NULL; } |
