From 510a405195bfbbc39b08d00af819e58e78fef3ee Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 28 Apr 2013 19:03:58 +0200 Subject: digital/io-hub/src/apbirthday: fix bad !d command --- digital/io-hub/src/apbirthday/robot.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digital/io-hub/src/apbirthday/robot.cc b/digital/io-hub/src/apbirthday/robot.cc index fa654e98..727976c8 100644 --- a/digital/io-hub/src/apbirthday/robot.cc +++ b/digital/io-hub/src/apbirthday/robot.cc @@ -234,7 +234,7 @@ Robot::proto_handle (ucoo::Proto &proto, char cmd, const uint8_t *args, int size // Demo mode. // 1B: 'f for follow mode. // 1B: 00 for clockwise, 01 for anti-clockwise - top_demo_follow (args[0] == 1 ? 1 : -1); + top_demo_follow (args[1] == 1 ? 1 : -1); break; case c ('m', 5): // Go to position. -- cgit v1.2.3