We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e1c90 commit 59165caCopy full SHA for 59165ca
shared-module/board/__init__.c
@@ -151,7 +151,6 @@ void reset_board_busses(void) {
151
#endif
152
#if BOARD_SPI
153
bool display_using_spi = false;
154
- busio_spi_obj_t *self = &spi_obj;
155
#if CIRCUITPY_DISPLAYIO
156
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
157
mp_const_obj_t bus_type = displays[i].bus_base.type;
@@ -169,7 +168,7 @@ void reset_board_busses(void) {
169
168
170
if (!display_using_spi) {
171
// make sure lock is not held over a soft reset
172
- common_hal_busio_spi_unlock(self);
+ common_hal_busio_spi_unlock(&spi_obj);
173
spi_singleton = NULL;
174
}
175
0 commit comments