summaryrefslogtreecommitdiff
path: root/n/asserv/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/asserv/src/main.c')
-rw-r--r--n/asserv/src/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/n/asserv/src/main.c b/n/asserv/src/main.c
index 1513876..eec0699 100644
--- a/n/asserv/src/main.c
+++ b/n/asserv/src/main.c
@@ -195,11 +195,8 @@ main_loop (void)
motor_print_sharps_cpt = motor_print_sharps;
}
/* Misc. */
- if ((motor_loop_cpt & 7) == 0)
- {
- if (rs232_poll ())
- proto_accept (rs232_getc ());
- }
+ while (rs232_poll ())
+ proto_accept (rs232_getc ());
motor_loop_cpt++;
}
}