mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix init order.
* make sure framebuffer and fb_alloc are initialized before sensor_init0
This commit is contained in:
parent
4a2799c635
commit
e2e9ceb5cd
@ -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)
|
||||
{
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user