Fails to compile with Arduino-ESP32 v2.0.0 Alpha
JohnMacrae opened this issue · comments
Hi,
Just a heads up, the Simple example no longer compiles when used with this alpha.
Error log:
In file included from /home/john/Arduino/libraries/OneWire/OneWire.cpp:144:
/home/john/Arduino/libraries/OneWire/util/OneWire_direct_gpio.h: In function 'void directModeInput(uint32_t)':
/home/john/Arduino/libraries/OneWire/util/OneWire_direct_gpio.h:161:26: error: 'rtc_gpio_desc' was not declared in this scope
uint32_t rtc_reg(rtc_gpio_desc[pin].reg);
^~~~~~~~~~~~~
/home/john/Arduino/libraries/OneWire/util/OneWire_direct_gpio.h:161:26: note: suggested alternative: 'rtc_io_desc'
uint32_t rtc_reg(rtc_gpio_desc[pin].reg);
^~~~~~~~~~~~~
rtc_io_desc
/home/john/Arduino/libraries/OneWire/util/OneWire_direct_gpio.h: In function 'void directModeOutput(uint32_t)':
/home/john/Arduino/libraries/OneWire/util/OneWire_direct_gpio.h:189:26: error: 'rtc_gpio_desc' was not declared in this scope
uint32_t rtc_reg(rtc_gpio_desc[pin].reg);
^~~~~~~~~~~~~
/home/john/Arduino/libraries/OneWire/util/OneWire_direct_gpio.h:189:26: note: suggested alternative: 'rtc_io_desc'
uint32_t rtc_reg(rtc_gpio_desc[pin].reg);
^~~~~~~~~~~~~
rtc_io_desc
Hope this helps and thanks for your support.
From the error messages it is clear that it is a problem with the onewire library. So it should be reported also there.
This library just builds on top of it, so cannot solve it as far as I can see.
@JohnMacrae Could you check if this fork works fine for you?