Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: CommandPool.cpp
- Revision:
- 6:88382274a161
- Parent:
- 5:7fa548878fac
- Child:
- 7:bfbded2b0e8c
--- a/CommandPool.cpp Sat Nov 28 15:22:23 2015 +0000
+++ b/CommandPool.cpp Sat Nov 28 19:33:53 2015 +0000
@@ -24,8 +24,6 @@
_pool[LED] = new LedCommand();
_pool[TURN_LEFT] = new TurnLeftCommand();
_pool[TURN_RIGHT] = new TurnRightCommand();
- _pool[MOVE_FORWARD] = new MoveForwardCommand();
- _pool[MOVE_BACKWARD] = new MoveBackwardCommand();
_pool[STOP] = new StopCommand();
}
@@ -35,7 +33,7 @@
static int8_t is_negative = 0;
static int8_t sp = 0;
- cmd = cmdstr & 0x0F;
+ cmd = cmdstr & 0x07;
is_negative = (cmdstr & 0x08) >> 3;
sp = (cmdstr & 0xF0) >> 4;