aboutsummaryrefslogtreecommitdiff
path: root/robot/setup.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-25 11:29:50 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-25 11:29:50 +0200
commit4f0718caefa7f7a1baf02997fec0b448d0d6615a (patch)
treea827337cc8c843851b00e511c54f775fe3e38e92 /robot/setup.c
parentb0a905b14ff90f2240e5aa2928d5329d8494cb46 (diff)
move more shared code
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