Land in a blink routing instead

This commit is contained in:
Imbus 2025-07-06 15:44:41 +02:00
parent c1ccfacaf0
commit 5d7f35b7c4

View file

@ -88,16 +88,31 @@ void task_blink_cycle(void *pvParams) {
vTaskDelay(pdMS_TO_TICKS(2000));
cmd.rate = 25;
if (xQueueSend(blink_rate_q, &cmd, pdMS_TO_TICKS(200)) != pdPASS) {
printf("Error sending blink command...");
}
vTaskDelay(pdMS_TO_TICKS(2000));
cmd.rate = 500;
if (xQueueSend(blink_rate_q, &cmd, pdMS_TO_TICKS(200)) != pdPASS) {
printf("Error sending blink command...");
}
vTaskDelay(pdMS_TO_TICKS(2000));
cmd.variant = BLINK_STATE;
cmd.state = 1;
if (xQueueSend(blink_rate_q, &cmd, pdMS_TO_TICKS(200)) != pdPASS) {
printf("Error sending blink command...");
}
cmd.variant = BLINK_RATE;
cmd.rate = 200;
if (xQueueSend(blink_rate_q, &cmd, pdMS_TO_TICKS(200)) != pdPASS) {
printf("Error sending blink command...");
}
vTaskDelete(NULL);
}