Get initial blink rate from pvParams

This commit is contained in:
Imbus 2025-07-06 14:40:26 +02:00
parent 4a8219e4b5
commit 9f3ea2e528

View file

@ -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);