diff --git a/lib/OneWire/OneWire.cpp b/lib/OneWire/OneWire.cpp index 7a4000e64..5828e804d 100644 --- a/lib/OneWire/OneWire.cpp +++ b/lib/OneWire/OneWire.cpp @@ -144,7 +144,7 @@ sample code bearing this copyright. #include "OneWire_direct_gpio.h" #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-variable" void OneWire::begin(uint8_t pin) { pinMode(pin, INPUT); @@ -155,7 +155,6 @@ void OneWire::begin(uint8_t pin) { #endif } - // Perform the onewire reset function. We will wait up to 250uS for // the bus to come high, if it doesn't then it is broken or shorted // and we return a 0;