From 54b69efe150e1a102faafb4e214159c92abbb841 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 26 May 2022 12:14:04 +0200 Subject: clean up ugly switch case in favor of array lookup --- robot/setup.c | 1 + robot/tests/undefined.bin | 1 + 2 files changed, 2 insertions(+) create mode 100644 robot/tests/undefined.bin (limited to 'robot') 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 -- cgit v1.2.3