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)
command = data[0]
argument = data[2:].strip()
if isalnum(command) and command in self._callbacks:
if command.isalnum() and command in self._callbacks:
cb = self._callbacks[command]
if cb:
cb(argument)

Loading…
Cancel
Save