diff --git a/components/esp32-owb b/components/esp32-owb index de012fd..af25dd3 160000 --- a/components/esp32-owb +++ b/components/esp32-owb @@ -1 +1 @@ -Subproject commit de012fd1deeb9aff194bc8e32e1dee725258c022 +Subproject commit af25dd31dbb1e80364b99fad29815badfab0ceda diff --git a/main/app_main.c b/main/app_main.c index a15ee6a..eb13214 100644 --- a/main/app_main.c +++ b/main/app_main.c @@ -45,6 +45,7 @@ void app_main() // To debug OWB, use 'make menuconfig' to set default Log level to DEBUG, then uncomment: //esp_log_level_set("owb", ESP_LOG_DEBUG); + //esp_log_level_set("ds18b20", ESP_LOG_DEBUG); // Stable readings require a brief period before communication vTaskDelay(2000.0 / portTICK_PERIOD_MS); @@ -191,6 +192,10 @@ void app_main() vTaskDelayUntil(&last_wake_time, SAMPLE_PERIOD / portTICK_PERIOD_MS); } } + else + { + printf("\nNo DS18B20 devices detected!\n"); + } // clean up dynamically allocated data for (int i = 0; i < num_devices; ++i)