Closed matthias-bs closed 1 year ago
An unused variable in OneWire causes the CI to fail:
/home/runner/Arduino/libraries/OneWire/OneWire.cpp: In member function 'uint8_t OneWire::reset()': /home/runner/Arduino/libraries/OneWire/OneWire.cpp:167:24: error: unused variable 'reg' [-Werror=unused-variable] volatile IO_REG_TYPE *reg IO_REG_BASE_ATTR = baseReg; ^~~ /home/runner/Arduino/libraries/OneWire/OneWire.cpp: In member function 'void OneWire::write_bit(uint8_t)': /home/runner/Arduino/libraries/OneWire/OneWire.cpp:201:24: error: unused variable 'reg' [-Werror=unused-variable] volatile IO_REG_TYPE *reg IO_REG_BASE_ATTR = baseReg; ^~~ /home/runner/Arduino/libraries/OneWire/OneWire.cpp: In member function 'uint8_t OneWire::read_bit()': /home/runner/Arduino/libraries/OneWire/OneWire.cpp:229:24: error: unused variable 'reg' [-Werror=unused-variable] volatile IO_REG_TYPE *reg IO_REG_BASE_ATTR = baseReg; ^~~ cc1plus: some warnings being treated as errors
As a workaround ONEWIRE_EN is disabled in BresserWeatherSensorTTNCfg.h.
ONEWIRE_EN
BresserWeatherSensorTTNCfg.h
Proposed fix: https://github.com/PaulStoffregen/OneWire/pull/118
Replaced OneWire by OneWireNg as proposed by @uzi18.
An unused variable in OneWire causes the CI to fail:
As a workaround
ONEWIRE_EN
is disabled inBresserWeatherSensorTTNCfg.h
.