Get initial blink rate from pvParams
This commit is contained in:
parent
4a8219e4b5
commit
9f3ea2e528
1 changed files with 6 additions and 0 deletions
|
@ -43,6 +43,12 @@ void task_blink(void *pvParams) {
|
||||||
.rate = 1000,
|
.rate = 1000,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (pvParams != NULL) {
|
||||||
|
command = *(BlinkCmd_t *)pvParams;
|
||||||
|
printf("Got initial configuration for leds:\n");
|
||||||
|
blink_cmd_print(&command);
|
||||||
|
}
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
if (pdPASS == xQueueReceive(blink_rate_q, &command, 0))
|
if (pdPASS == xQueueReceive(blink_rate_q, &command, 0))
|
||||||
blink_cmd_print(&command);
|
blink_cmd_print(&command);
|
||||||
|
|
Loading…
Add table
Reference in a new issue