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 abb5f73 commit 8712e19Copy full SHA for 8712e19
ext_mod/lcd_bus/esp32_src/rgb_bus.c
@@ -412,6 +412,11 @@
412
mp_raise_msg_varg(&mp_type_ValueError, self->init_err_msg, self->init_err);
413
return self->init_err;
414
} else {
415
+ // add the new bus ONLY after successfull initilization of the bus
416
+ rgb_bus_count++;
417
+ m_realloc(rgb_bus_objs, rgb_bus_count * sizeof(mp_lcd_rgb_bus_obj_t *));
418
+ rgb_bus_objs[rgb_bus_count - 1] = self;
419
+
420
return LCD_OK;
421
}
422
0 commit comments