From 371853e8cdb8d8342326335094e2684f56c4fc48 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 18 May 2009 17:46:35 +0200 Subject: * digital/io/src: - always handle chrono just after the main timer wait. --- digital/io/src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'digital') 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 (); -- cgit v1.2.3