From 156e721691d1b442e7ef4c19fa8c235133df0d47 Mon Sep 17 00:00:00 2001 From: Ollo Date: Fri, 30 Oct 2020 22:53:24 +0100 Subject: [PATCH] Enable debugging of onewire lib --- esp32/src/DS18B20.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esp32/src/DS18B20.cpp b/esp32/src/DS18B20.cpp index 0bc738e..dbe8814 100644 --- a/esp32/src/DS18B20.cpp +++ b/esp32/src/DS18B20.cpp @@ -36,6 +36,9 @@ int Ds18B20::readAllTemperatures(float* pTemperatures, int maxTemperatures) { byte addr[8]; uint8_t scratchPad[SCRATCHPADSIZE]; int currentTemp = 0; +#ifdef DS_DEBUG + int i; +#endif while (this->mDs->search(addr)) { #ifdef DS_DEBUG