components/esp32-ds18b20/ds18b20.c

changeset 91
255a75322212
parent 1
ad2c8b13eb88
--- a/components/esp32-ds18b20/ds18b20.c	Thu Jun 11 22:53:04 2020 +0200
+++ b/components/esp32-ds18b20/ds18b20.c	Mon May 17 20:44:35 2021 +0200
@@ -133,7 +133,7 @@
         }
         else
         {
-            ESP_LOGE(TAG, "ds18b20 device not responding");
+            ESP_LOGE(TAG, "ds18b20 no response");
         }
     }
     return present;
@@ -150,10 +150,8 @@
     if (_check_resolution(resolution))
     {
         int divisor = 1 << (DS18B20_RESOLUTION_12_BIT - resolution);
-        ESP_LOGD(TAG, "divisor %d", divisor);
         float max_conversion_time = (float)T_CONV / (float)divisor;
         int ticks = ceil(max_conversion_time / portTICK_PERIOD_MS);
-        ESP_LOGD(TAG, "wait for conversion: %.3f ms, %d ticks", max_conversion_time, ticks);
 
         // wait at least this maximum conversion time
         vTaskDelay(ticks);
@@ -379,7 +377,7 @@
         }
         else
         {
-            ESP_LOGE(TAG, "ds18b20 device not responding");
+            ESP_LOGE(TAG, "ds18b20 no response");
         }
     }
     return result;
@@ -463,7 +461,7 @@
         }
         else
         {
-            ESP_LOGE(TAG, "ds18b20 device not responding");
+            ESP_LOGE(TAG, "ds18b20 no response");
             err = DS18B20_ERROR_DEVICE;
         }
     }

mercurial