diff options
| author | root <siehputz@gmail.com> | 2020-09-11 10:54:46 -0500 |
|---|---|---|
| committer | root <siehputz@gmail.com> | 2020-09-11 10:54:46 -0500 |
| commit | 870326b2218e24a20f40c8ee72f3ec27d0f3813b (patch) | |
| tree | f0c4ca2507e6b4c7517275a9149e8b06be8cd83b /shared-module | |
| parent | 59165cabbe1c27260678c4e252465b11e1cf8c0e (diff) | |
Moved SPI unlock code
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/board/__init__.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-module/board/__init__.c b/shared-module/board/__init__.c index ae0659791..7d99f2d4e 100644 --- a/shared-module/board/__init__.c +++ b/shared-module/board/__init__.c @@ -166,9 +166,9 @@ void reset_board_busses(void) { #endif } #endif + // make sure SPI lock is not held over a soft reset + common_hal_busio_spi_unlock(&spi_obj); if (!display_using_spi) { - // make sure lock is not held over a soft reset - common_hal_busio_spi_unlock(&spi_obj); spi_singleton = NULL; } #endif |
