Browse Source

Update esp32-owb component to resolve owb_verify_rom blocking when no devices are connected.

main
David Antliff 6 years ago
parent
commit
0292adfbc4
  1. 2
      components/esp32-owb
  2. 5
      main/app_main.c

2
components/esp32-owb

@ -1 +1 @@
Subproject commit de012fd1deeb9aff194bc8e32e1dee725258c022 Subproject commit af25dd31dbb1e80364b99fad29815badfab0ceda

5
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: // 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("owb", ESP_LOG_DEBUG);
//esp_log_level_set("ds18b20", ESP_LOG_DEBUG);
// Stable readings require a brief period before communication // Stable readings require a brief period before communication
vTaskDelay(2000.0 / portTICK_PERIOD_MS); vTaskDelay(2000.0 / portTICK_PERIOD_MS);
@ -191,6 +192,10 @@ void app_main()
vTaskDelayUntil(&last_wake_time, SAMPLE_PERIOD / portTICK_PERIOD_MS); vTaskDelayUntil(&last_wake_time, SAMPLE_PERIOD / portTICK_PERIOD_MS);
} }
} }
else
{
printf("\nNo DS18B20 devices detected!\n");
}
// clean up dynamically allocated data // clean up dynamically allocated data
for (int i = 0; i < num_devices; ++i) for (int i = 0; i < num_devices; ++i)

Loading…
Cancel
Save