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";