Removed unneeded pointer

This commit is contained in:
root 2020-09-09 10:36:55 -05:00
parent 61e1c906bf
commit 59165cabbe
1 changed files with 1 additions and 2 deletions

View File

@ -151,7 +151,6 @@ void reset_board_busses(void) {
#endif
#if BOARD_SPI
bool display_using_spi = false;
busio_spi_obj_t *self = &spi_obj;
#if CIRCUITPY_DISPLAYIO
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
mp_const_obj_t bus_type = displays[i].bus_base.type;
@ -169,7 +168,7 @@ void reset_board_busses(void) {
#endif
if (!display_using_spi) {
// make sure lock is not held over a soft reset
common_hal_busio_spi_unlock(self);
common_hal_busio_spi_unlock(&spi_obj);
spi_singleton = NULL;
}
#endif