supress compile warnings

This commit is contained in:
proddy
2020-07-23 12:02:58 +02:00
parent 4932b00f12
commit d30b0ce505

View File

@@ -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;