From bd67678586887cd01aee7ebbc66697e77b39a4b8 Mon Sep 17 00:00:00 2001 From: Dave Mercer Date: Wed, 15 Jan 2025 15:17:18 -0330 Subject: [PATCH] Adding creation of the bus instance without which the code crashes --- components/ds18b20/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/components/ds18b20/README.md b/components/ds18b20/README.md index f1d55f9f..ccc911a3 100644 --- a/components/ds18b20/README.md +++ b/components/ds18b20/README.md @@ -27,6 +27,7 @@ DS18B20 temperature sensor only uses a single wire to write and read data, the i esp_err_t search_result = ESP_OK; // create 1-wire device iterator, which is used for device search + ESP_ERROR_CHECK(onewire_new_bus_rmt(&bus_config, &rmt_config, &bus)); ESP_ERROR_CHECK(onewire_new_device_iter(bus, &iter)); ESP_LOGI(TAG, "Device iterator created, start searching..."); do {