Skip to content

Commit 870326b

Browse files
committed
Moved SPI unlock code
1 parent 59165ca commit 870326b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-module/board/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ void reset_board_busses(void) {
166166
#endif
167167
}
168168
#endif
169+
// make sure SPI lock is not held over a soft reset
170+
common_hal_busio_spi_unlock(&spi_obj);
169171
if (!display_using_spi) {
170-
// make sure lock is not held over a soft reset
171-
common_hal_busio_spi_unlock(&spi_obj);
172172
spi_singleton = NULL;
173173
}
174174
#endif

0 commit comments

Comments
 (0)