Fix init order.

* make sure framebuffer and fb_alloc are initialized before sensor_init0
This commit is contained in:
iabdalkader 2021-04-05 21:22:08 +02:00
parent 4a2799c635
commit e2e9ceb5cd
2 changed files with 4 additions and 3 deletions

View File

@ -153,11 +153,12 @@ soft_reset:
uart_init0();
#endif
framebuffer_init0();
fb_alloc_init0();
#if MICROPY_PY_SENSOR
sensor_init();
#endif
framebuffer_init0();
fb_alloc_init0();
#if (MICROPY_PY_BLE_NUS == 0) && (MICROPY_HW_USB_CDC == 0)
{

View File

@ -517,9 +517,9 @@ soft_reset:
i2c_init0();
spi_init0();
uart_init0();
sensor_init0();
framebuffer_init0();
fb_alloc_init0();
sensor_init0();
dma_alloc_init0();
#ifdef IMLIB_ENABLE_IMAGE_FILE_IO
file_buffer_init0();