From b2eec0b3e65246c98d01f34007770f3654f5788c Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Tue, 5 Aug 2025 02:59:09 -0400 Subject: [PATCH] FreeRTOS --- ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c b/ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c index d4ac53b1c..f449b9bd6 100644 --- a/ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c +++ b/ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c @@ -30,6 +30,7 @@ typedef struct { } SensorsData; static int cntdn; +static SensorsData s_data; void task1(void *pvParameters); void task2(void *pvParameters); @@ -39,6 +40,12 @@ void restart_task(void *pvParameters); void app_main(void) { cntdn = 10; + s_data = (SensorsData) { + .num1 = 0, + .num2 = 0, + .num3 = 0, + }; + printf("Hello world!\n"); /* Print chip information */