summaryrefslogtreecommitdiffhomepage
path: root/digital
diff options
context:
space:
mode:
Diffstat (limited to 'digital')
-rw-r--r--digital/io/src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/digital/io/src/main.c b/digital/io/src/main.c
index 22faedc1..1ed93970 100644
--- a/digital/io/src/main.c
+++ b/digital/io/src/main.c
@@ -385,11 +385,6 @@ main_loop (void)
}
}
- /* Get the data from the UART */
- while (uart0_poll ())
- /* Manage UART protocol */
- proto_accept (uart0_getc ());
-
/* Update chrono. */
chrono_update ();
/* Is match over? */
@@ -401,6 +396,11 @@ main_loop (void)
return;
}
+ /* Get the data from the UART */
+ while (uart0_poll ())
+ /* Manage UART protocol */
+ proto_accept (uart0_getc ());
+
/* Update PWM */
pwm_update ();