aboutsummaryrefslogtreecommitdiff
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 3814d371c..6ed6b9574 100644
--- a/quantum/main.c
+++ b/quantum/main.c
@@ -43,6 +43,10 @@ void protocol_task(void) {
43 protocol_post_task(); 43 protocol_post_task();
44} 44}
45 45
46#ifdef DEFERRED_EXEC_ENABLE
47void deferred_exec_task(void);
48#endif // DEFERRED_EXEC_ENABLE
49
46/** \brief Main 50/** \brief Main
47 * 51 *
48 * FIXME: Needs doc 52 * FIXME: Needs doc
@@ -58,6 +62,12 @@ int main(void) {
58 /* Main loop */ 62 /* Main loop */
59 while (true) { 63 while (true) {
60 protocol_task(); 64 protocol_task();
65
66#ifdef DEFERRED_EXEC_ENABLE
67 // Run deferred executions
68 deferred_exec_task();
69#endif // DEFERRED_EXEC_ENABLE
70
61 housekeeping_task(); 71 housekeeping_task();
62 } 72 }
63} 73}