From 383bba9812005f926ed38592c2a5022bde0b5c2f Mon Sep 17 00:00:00 2001 From: Tyler Potyondy Date: Mon, 9 Dec 2024 22:35:06 -0800 Subject: [PATCH] [Thread Tutorial] Update type for temperature --- examples/tutorials/thread_network/08_screen_u8g2/main.c | 2 +- examples/tutorials/thread_network/09_screen_final/main.c | 2 +- examples/tutorials/thread_network/10_screen_ipc/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/tutorials/thread_network/08_screen_u8g2/main.c b/examples/tutorials/thread_network/08_screen_u8g2/main.c index f61203f42..8d3760b22 100644 --- a/examples/tutorials/thread_network/08_screen_u8g2/main.c +++ b/examples/tutorials/thread_network/08_screen_u8g2/main.c @@ -16,7 +16,7 @@ static void update_screen(void); uint8_t global_temperature_setpoint = 0; uint8_t local_temperature_setpoint = 22; -uint8_t measured_temperature = 0; +int measured_temperature = 0; static void button_callback(returncode_t ret, int btn_num, diff --git a/examples/tutorials/thread_network/09_screen_final/main.c b/examples/tutorials/thread_network/09_screen_final/main.c index 075c69877..b5dbf6f4f 100644 --- a/examples/tutorials/thread_network/09_screen_final/main.c +++ b/examples/tutorials/thread_network/09_screen_final/main.c @@ -16,7 +16,7 @@ static void update_screen(void); uint8_t global_temperature_setpoint = 0; uint8_t local_temperature_setpoint = 22; -uint8_t measured_temperature = 0; +int measured_temperature = 0; bool callback_event = false; diff --git a/examples/tutorials/thread_network/10_screen_ipc/main.c b/examples/tutorials/thread_network/10_screen_ipc/main.c index 96227b1ef..c7d46e41f 100644 --- a/examples/tutorials/thread_network/10_screen_ipc/main.c +++ b/examples/tutorials/thread_network/10_screen_ipc/main.c @@ -19,7 +19,7 @@ static void update_screen(void); uint8_t global_temperature_setpoint = 0; uint8_t local_temperature_setpoint = 22; -uint8_t measured_temperature = 0; +int measured_temperature = 0; uint8_t prior_global_temperature_setpoint = 255; uint8_t prior_local_temperature_setpoint = 255;