From 9f3ea2e528126cab23e91e5c1a2e465a37017d6f Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 6 Jul 2025 14:40:26 +0200 Subject: [PATCH] Get initial blink rate from pvParams --- main/task_blink.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/task_blink.c b/main/task_blink.c index fe549f7..f6fd288 100644 --- a/main/task_blink.c +++ b/main/task_blink.c @@ -43,6 +43,12 @@ void task_blink(void *pvParams) { .rate = 1000, }; + if (pvParams != NULL) { + command = *(BlinkCmd_t *)pvParams; + printf("Got initial configuration for leds:\n"); + blink_cmd_print(&command); + } + while (1) { if (pdPASS == xQueueReceive(blink_rate_q, &command, 0)) blink_cmd_print(&command);