mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 13:06:54 +03:00
Keep MainFlowTask alive to handle reboot (#2325)
This commit is contained in:
@@ -1014,6 +1014,12 @@ void task_autodoFlow(void *pvParameter)
|
|||||||
vTaskDelay( xDelay );
|
vTaskDelay( xDelay );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while(1) // Keep flow task running to handle necessary sub tasks like reboot handler, etc..
|
||||||
|
{
|
||||||
|
vTaskDelay(2000 / portTICK_PERIOD_MS);
|
||||||
|
}
|
||||||
|
|
||||||
vTaskDelete(NULL); //Delete this task if it exits from the loop above
|
vTaskDelete(NULL); //Delete this task if it exits from the loop above
|
||||||
xHandletask_autodoFlow = NULL;
|
xHandletask_autodoFlow = NULL;
|
||||||
ESP_LOGD(TAG, "task_autodoFlow: end");
|
ESP_LOGD(TAG, "task_autodoFlow: end");
|
||||||
|
|||||||
Reference in New Issue
Block a user