mkfrey / u8g2-hal-esp-idf

U8g2 compatibility component for esp-idf on ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to build with newer IDF (includes suggested fix)

dalbert2 opened this issue · comments

The i2c_config_t structure changed in newer versions of IDF (I'm using 4.3.2), and a critical element is not initialized.
The fix: in u8g2_esp32_hal.c, add this after line 142:
conf.clk_flags = 0;