IoAbstraction icon indicating copy to clipboard operation
IoAbstraction copied to clipboard

ESP32-C3 gives me a compile error

Open fa-yoshinobu opened this issue 1 year ago • 1 comments

I get the following error and cannot compile

.pio/libdeps/seeed_xiao_esp32c3/IoAbstraction/src/esp32/ESP32AnalogDevice.cpp:14:10: fatal error: driver/dac.h: No such file or directory #include <driver/dac.h> ^~~~~~~~~~~~~~

I think the cause is the same as here https://github.com/davetcc/IoAbstraction/issues/161

I changed #ifndef CONFIG_IDF_TARGET_ESP32S3 to CONFIG_IDF_TARGET_ESP32C3 in ESP32AnalogDevice.cpp and the compilation was successful and tcMenu works.

Operation confirmed with Seeed Studio XIAO ESP32C3

fa-yoshinobu avatar Dec 04 '23 04:12 fa-yoshinobu

Ah yes, another board without the dac, I'll get that added to the header, thanks for confirming.

davetcc avatar Dec 04 '23 09:12 davetcc

Fixed by PR to use include check instead of looking for flags.

davetcc avatar Aug 04 '24 08:08 davetcc