From 7e4c468ca057a343d3db4b219efa5953d415d33f Mon Sep 17 00:00:00 2001 From: Pedro Minatel Date: Tue, 24 Sep 2024 08:54:07 +0100 Subject: [PATCH] Update components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c Co-authored-by: Ivan Grokhotkov --- .../ds18b20/examples/ds18b20-read/main/ds18b20-read.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c b/components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c index c5a3af46..27391d3b 100644 --- a/components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c +++ b/components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c @@ -14,9 +14,9 @@ #define EXAMPLE_ONEWIRE_BUS_GPIO 18 #define EXAMPLE_ONEWIRE_MAX_DS18B20 2 -int ds18b20_device_num = 0; -float temperature = 0.0; -ds18b20_device_handle_t ds18b20s[EXAMPLE_ONEWIRE_MAX_DS18B20]; +static int s_ds18b20_device_num = 0; +static float s_temperature = 0.0; +static ds18b20_device_handle_t s_ds18b20s[EXAMPLE_ONEWIRE_MAX_DS18B20]; static const char *TAG = "DS18B20";