mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
supress compile warnings
This commit is contained in:
@@ -144,7 +144,7 @@ sample code bearing this copyright.
|
|||||||
#include "OneWire_direct_gpio.h"
|
#include "OneWire_direct_gpio.h"
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
|
||||||
void OneWire::begin(uint8_t pin) {
|
void OneWire::begin(uint8_t pin) {
|
||||||
pinMode(pin, INPUT);
|
pinMode(pin, INPUT);
|
||||||
@@ -155,7 +155,6 @@ void OneWire::begin(uint8_t pin) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Perform the onewire reset function. We will wait up to 250uS for
|
// 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
|
// the bus to come high, if it doesn't then it is broken or shorted
|
||||||
// and we return a 0;
|
// and we return a 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user