aboutsummaryrefslogtreecommitdiff
path: root/robot/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'robot/setup.c')
-rw-r--r--robot/setup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/robot/setup.c b/robot/setup.c
index 6af1a05..6dfef50 100644
--- a/robot/setup.c
+++ b/robot/setup.c
@@ -17,8 +17,6 @@ void w2_setup_main() {
// check endianness
g_w2_endianness = *_ptest;
- serial_set_baud_rate(W2_SERIAL_BAUD);
-
// reset underside leds
red_led(0);
green_led(0);
@@ -27,6 +25,7 @@ void w2_setup_main() {
clear();
// start serial input
+ serial_set_baud_rate(W2_SERIAL_BAUD);
serial_receive_ring(g_w2_serial_buffer, W2_SERIAL_READ_BUFFER_SIZE);
// indicate startup done