Closed rharrison closed 4 years ago
This is to fix -Wunused-variable warning that comes up when using the OneWire library with the ESP8266
/home/rharrison/Arduino/libraries/OneWire/OneWire.cpp:167:24: warning: unused variable 'reg' [-Wunused-variable] volatile IO_REG_TYPE *reg IO_REG_BASE_ATTR = baseReg; ^ /home/rharrison/Arduino/libraries/OneWire/OneWire.cpp: In member function 'void OneWire::write_bit(uint8_t)': /home/rharrison/Arduino/libraries/OneWire/OneWire.cpp:201:24: warning: unused variable 'reg' [-Wunused-variable] volatile IO_REG_TYPE *reg IO_REG_BASE_ATTR = baseReg; ^ /home/rharrison/Arduino/libraries/OneWire/OneWire.cpp: In member function 'uint8_t OneWire::read_bit()': /home/rharrison/Arduino/libraries/OneWire/OneWire.cpp:229:24: warning: unused variable 'reg' [-Wunused-variable] volatile IO_REG_TYPE *reg IO_REG_BASE_ATTR = baseReg;
Crap this is a repeat of #78
This is to fix -Wunused-variable warning that comes up when using the OneWire library with the ESP8266