vitotai / BrewManiacEsp8266

BrewManiac on ESP8266. Only ESP8266 needed.
155 stars 71 forks source link

Сompilation error #112

Open wzooroo opened 1 year ago

wzooroo commented 1 year ago

And again a compilation error(

`Compiling .pio/build/esp32-dev/src/ESP32HTTPUpdateServer.cpp.o src/BrewManiac.cpp:14:10: fatal error: OneWire.h: No such file or directory


I added the Onewire library. But there is still an error.

`Compiling .pio/build/esp32-dev/src/automation.cpp.o Generating partitions .pio/build/esp32-dev/partitions.bin In file included from src/BrewManiac.cpp:14: lib/OneWire/src/OneWire.h: In function 'void directModeInput(uint32_t)': lib/OneWire/src/OneWire.h:190:26: error: 'rtc_gpio_desc' was not declared in this scope uint32_t rtc_reg(rtc_gpio_desc[pin].reg); ^~~~~ lib/OneWire/src/OneWire.h:190:26: note: suggested alternative: 'rtc_io_desc' uint32_t rtc_reg(rtc_gpio_desc[pin].reg); ^~~~~ rtc_io_desc In file included from /home/dima/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:36, from src/BrewManiac.cpp:11: lib/OneWire/src/OneWire.h:207:38: error: 'esp32_gpioMux' was not declared in this scope ESP_REG(DR_REG_IO_MUX_BASE + esp32_gpioMux[pin].reg) = pinFunction; ^~~~~ /home/dima/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal.h:73:47: note: in definition of macro 'ESP_REG'

define ESP_REG(addr) ((volatile uint32_t )(addr))

                                           ^~~~

In file included from src/BrewManiac.cpp:14: lib/OneWire/src/OneWire.h: In function 'void directModeOutput(uint32_t)': lib/OneWire/src/OneWire.h:218:26: error: 'rtc_gpio_desc' was not declared in this scope uint32_t rtc_reg(rtc_gpio_desc[pin].reg); ^~~~~`

vitotai commented 1 year ago

my bad. was trying latest ESP32 framework, which requires upgraded OneWire Library.