diff --git a/src/core/tasks.c b/src/core/tasks.c index 99548a3ba..8e12b8c98 100644 --- a/src/core/tasks.c +++ b/src/core/tasks.c @@ -20,9 +20,6 @@ #include "rx/rx.h" void util_task() { - // check gestures - gestures(); - // handle led commands led_update(); @@ -43,7 +40,8 @@ FAST_RAM task_t tasks[TASK_MAX] = { [TASK_PID] = CREATE_TASK("PID", TASK_MASK_ALWAYS, TASK_PRIORITY_REALTIME, control, 0), [TASK_RX] = CREATE_TASK("RX", TASK_MASK_ALWAYS, TASK_PRIORITY_REALTIME, rx_update, 0), [TASK_VBAT] = CREATE_TASK("VBAT", TASK_MASK_ALWAYS, TASK_PRIORITY_HIGH, vbat_calc, 1000), - [TASK_UTIL] = CREATE_TASK("UTIL", TASK_MASK_ALWAYS, TASK_PRIORITY_HIGH, util_task, 0), + [TASK_UTIL] = CREATE_TASK("UTIL", TASK_MASK_ALWAYS, TASK_PRIORITY_HIGH, util_task, 1000), + [TASK_GESTURES] = CREATE_TASK("GESTURES", TASK_MASK_ON_GROUND, TASK_PRIORITY_MEDIUM, gestures, 0), [TASK_BLACKBOX] = CREATE_TASK("BLACKBOX", TASK_MASK_ALWAYS, TASK_PRIORITY_MEDIUM, blackbox_update, 0), [TASK_OSD] = CREATE_TASK("OSD", TASK_MASK_ALWAYS, TASK_PRIORITY_MEDIUM, osd_display, 8000), [TASK_VTX] = CREATE_TASK("VTX", TASK_MASK_ON_GROUND, TASK_PRIORITY_LOW, vtx_update, 0), diff --git a/src/core/tasks.h b/src/core/tasks.h index bd8f1feb9..61e7ab4aa 100644 --- a/src/core/tasks.h +++ b/src/core/tasks.h @@ -12,6 +12,7 @@ typedef enum { TASK_RX, TASK_VBAT, TASK_UTIL, + TASK_GESTURES, TASK_BLACKBOX, TASK_OSD, TASK_VTX,