aboutsummaryrefslogtreecommitdiff
path: root/robot/setup.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-26 12:14:04 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-26 12:14:04 +0200
commit54b69efe150e1a102faafb4e214159c92abbb841 (patch)
tree6c1cd23f61cbc3012078453f2f7c507704c39a01 /robot/setup.c
parente63abbdff3408c17b45c9032e7f7ba0199b43bd0 (diff)
clean up ugly switch case in favor of array lookup
Diffstat (limited to 'robot/setup.c')
-rw-r--r--robot/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/robot/setup.c b/robot/setup.c
index 944ea68..f8468bf 100644
--- a/robot/setup.c
+++ b/robot/setup.c
@@ -25,6 +25,7 @@ void w2_setup_main() {
clear();
// start serial i/o
+ w2_cmd_setup_handlers();
serial_set_baud_rate(W2_SERIAL_BAUD);
serial_receive_ring(g_w2_serial_buffer, W2_SERIAL_READ_BUFFER_SIZE);