summaryrefslogtreecommitdiff
path: root/digital
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-18 17:46:35 +0200
committerJérémy Dufour2009-05-18 17:46:35 +0200
commit371853e8cdb8d8342326335094e2684f56c4fc48 (patch)
tree11b43fb4f1a3bbcb4fe262561ee6c3855fef6783 /digital
parent4bada290e0ba76e58bd6e622da3e0df26b4a2286 (diff)
* digital/io/src:
- always handle chrono just after the main timer wait.
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 ();