Browse Source

fix serial cmd

main
Hendrik Langer 4 years ago
parent
commit
365302e2cd
  1. 4
      raspberry/roberto/Serial.py

4
raspberry/roberto/Serial.py

@ -49,8 +49,8 @@ class Serial(object):
if data: if data:
print(data) print(data)
command = data[0] 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] cb = self._callbacks[command]
if cb: if cb:
cb(argument) cb(argument)

Loading…
Cancel
Save