@ -49,8 +49,8 @@ class Serial(object):
if data:
print(data)
command = data[0]
argument = data[2:]
argument = data[2:].strip()
if command in data:
if isalnum(command) and command in self._callbacks:
cb = self._callbacks[command]
if cb:
cb(argument)