Skip to content

Commit 243fbaf

Browse files
committed
fixes spi host type when freeing the bus
1 parent c5276ec commit 243fbaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext_mod/lcd_bus/esp32_src/spi_bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ mp_lcd_err_t spi_del(mp_obj_t obj)
199199
mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("%d(esp_lcd_panel_io_del)"), ret);
200200
}
201201

202-
ret = spi_bus_free(self->bus_handle);
202+
ret = spi_bus_free(self->host);
203203
if (ret != 0) {
204204
mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("%d(spi_bus_free)"), ret);
205205
}

0 commit comments

Comments
 (0)