summaryrefslogtreecommitdiffstats
path: root/quantum/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/main.c')
-rw-r--r--quantum/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/main.c b/quantum/main.c
index 3814d371c1..6ed6b95741 100644
--- a/quantum/main.c
+++ b/quantum/main.c
@@ -43,6 +43,10 @@ void protocol_task(void) {
protocol_post_task();
}
+#ifdef DEFERRED_EXEC_ENABLE
+void deferred_exec_task(void);
+#endif // DEFERRED_EXEC_ENABLE
+
/** \brief Main
*
* FIXME: Needs doc
@@ -58,6 +62,12 @@ int main(void) {
/* Main loop */
while (true) {
protocol_task();
+
+#ifdef DEFERRED_EXEC_ENABLE
+ // Run deferred executions
+ deferred_exec_task();
+#endif // DEFERRED_EXEC_ENABLE
+
housekeeping_task();
}
}