aboutsummaryrefslogtreecommitdiff
path: root/robot
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
parente63abbdff3408c17b45c9032e7f7ba0199b43bd0 (diff)
clean up ugly switch case in favor of array lookup
Diffstat (limited to 'robot')
-rw-r--r--robot/setup.c1
-rw-r--r--robot/tests/undefined.bin1
2 files changed, 2 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);
diff --git a/robot/tests/undefined.bin b/robot/tests/undefined.bin
new file mode 100644
index 0000000..d44f518
--- /dev/null
+++ b/robot/tests/undefined.bin
@@ -0,0 +1 @@
+��9 4� \ No newline at end of file