lvgl_esp32_drivers icon indicating copy to clipboard operation
lvgl_esp32_drivers copied to clipboard

fix missing SPI_HOST_MAX

Open seregamorph opened this issue 2 years ago • 1 comments

Fix compilation issue

                 from components/lvgl_esp32_drivers/lvgl_helpers.h:18,
                 from components/lvgl_esp32_drivers/lvgl_helpers.c:10:
components/lvgl_esp32_drivers/lvgl_helpers.c: In function 'lvgl_spi_driver_init':
components/lvgl_esp32_drivers/lvgl_helpers.c:157:28: error: 'SPI_HOST_MAX' undeclared (first use in this function); did you mean 'GPIO_PORT_MAX'?
     assert((0 <= host) && (SPI_HOST_MAX > host));
                            ^~~~~~~~~~~~
components/lvgl_esp32_drivers/lvgl_helpers.c:157:28: note: each undeclared identifier is reported only once for each function it appears in
*** [.pio/build/esp32doit-devkit-v1-sergey/components/lvgl_esp32_drivers/lvgl_helpers.o] Error 1

Fix taken from develop branch: https://github.com/lvgl/lvgl_esp32_drivers/blob/develop/lvgl_helpers.c#L270 by @C47D

seregamorph avatar Mar 20 '22 22:03 seregamorph

@tore-espressif should we merge this or close it as develop is soon to be merged into master?

C47D avatar Apr 13 '22 04:04 C47D