PaulStoffregen / OneWire

Library for Dallas/Maxim 1-Wire Chips
http://www.pjrc.com/teensy/td_libs_OneWire.html
595 stars 390 forks source link

Fix build error on arduino-esp32 v3.0.0-alphaX #134

Closed meikjaeckle closed 7 months ago

meikjaeckle commented 7 months ago

In arduino-esp32 v3.0.0-alpha3, we get a build error because the "GPIO" declaration was not found by the compiler. The GPIO variable is declared in <soc/gpio_struct.h>, which is not in the include chain as before. So, adding the missing include solves that issue.

The fix works with 2.0.14 of arduino-esp32 as well.

Fixes https://github.com/PaulStoffregen/OneWire/issues/132