Browse Source

fix serial cmd

main
Hendrik Langer 4 years ago
parent
commit
24cf5325a4
  1. 2
      raspberry/roberto/Serial.py

2
raspberry/roberto/Serial.py

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

Loading…
Cancel
Save