Skip to content

Commit 21dba4d

Browse files
committed
Fixed more errors.
1 parent a93241f commit 21dba4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext_mod/lcd_bus/esp32_src/i2c_bus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void mp_lcd_i2c_bus_deinit_all(void)
3838
}
3939

4040
for (uint8_t i=0;i<i2c_bus_count;i++) {
41-
spi_del(MP_OBJ_FROM_PTR(objs[i]));
41+
i2c_del(MP_OBJ_FROM_PTR(objs[i]));
4242
}
4343
}
4444

@@ -209,7 +209,7 @@ mp_lcd_err_t i2c_init(mp_obj_t obj, uint16_t width, uint16_t height, uint8_t bpp
209209
// add the new bus ONLY after successfull initilization of the bus
210210
i2c_bus_count++;
211211
i2c_bus_objs = m_realloc(i2c_bus_objs, i2c_bus_count * sizeof(mp_lcd_i2c_bus_obj_t *));
212-
spi_bus_objs[i2c_bus_count - 1] = self;
212+
i2c_bus_objs[i2c_bus_count - 1] = self;
213213

214214
return ret;
215215
}

ext_mod/lcd_bus/esp32_src/i80_bus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
return ret;
275275
}
276276

277-
self->panel_io_handle.panel_io = NULL
277+
self->panel_io_handle.panel_io = NULL;
278278

279279
if (self->view1 != NULL) {
280280
heap_caps_free(self->view1->items);
@@ -292,7 +292,7 @@
292292
LCD_DEBUG_PRINT("i80_free_framebuffer(self, buf=1)\n")
293293
}
294294

295-
uint8_t i= 0;
295+
uint8_t i = 0;
296296
for (;i<i80_bus_count;i++) {
297297
if (i80_bus_objs[i] == self) {
298298
i80_bus_objs[i] = NULL;

0 commit comments

Comments
 (0)