From 0292adfbc498ac7391acef37eb35b291a35bf238 Mon Sep 17 00:00:00 2001 From: David Antliff Date: Wed, 18 Mar 2020 19:37:17 +1300 Subject: [PATCH] Update esp32-owb component to resolve owb_verify_rom blocking when no devices are connected. --- components/esp32-owb | 2 +- main/app_main.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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)