Skip to content

Commit

Permalink
Update components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Grokhotkov <igrokhotkov@gmail.com>
  • Loading branch information
pedrominatel and igrr committed Sep 24, 2024
1 parent 13cd572 commit 7e4c468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/ds18b20/examples/ds18b20-read/main/ds18b20-read.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 7e4c468

Please sign in to comment.