Xinyuan-LilyGO / LilyGo-esp32s2-base

33 stars 7 forks source link

build fails #8

Open protectivedad opened 2 years ago

protectivedad commented 2 years ago

Build gives an error:

../main/app_main.c:262:5: error: implicit declaration of function 'gpio_pad_select_gpio'; did you mean 'esp_rom_gpio_pad_select_gpio'? [-Werror=implicit-function-declaration]
     gpio_pad_select_gpio(POWER_PIN);
     ^~~~~~~~~~~~~~~~~~~~
     esp_rom_gpio_pad_select_gpio

From the bootloader map file both gpio_pad_select_gpio and esp_rom_gpio_pad_select_gpio are there and are the same item. Changed main/app_main.c to use esp_rom_gpio_pad_select_gpio.