Touchbot: Fix a parsing problem in error.py

The error parsing module used "lstrip()" to extract the error codes from
the messages sent over the robot's serial connection.  The problem was
that if the error code included 1's or 2's they could be stripped to.

ie: if the error message was "ST1=11" and we wanted to get the "11"
using message.lstrip("ST1=") would return an empty string since the code
consisted of 1's which were in the set of characters to strip.

I replaced the lstrips with split()'s to divide it on the '=' so it
doesn't matter what numbers are in the error code

BUG=chromium-os:39369
TEST=Manually ran it, and forced an error with code "11" and it was
parsed correctly.  Other errors work fine as well.

Change-Id: I2fdb931273b547852eb98a2cec5aea7160e9db5c
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/44299
3 files changed
tree: 63a1e0c40b27ff5e9abcf24846f3a25d07668c66
  1. documentation/
  2. gestures/
  3. roibot/
  4. test/
  5. README
  6. setup.py