Browse Source

fix serial cmd

main
Hendrik Langer 4 years ago
parent
commit
27532704a5
  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 command.isalnum() and command in self._callbacks:
if command and command in self._callbacks:
cb = self._callbacks[command]
if cb:
cb(argument)

Loading…
Cancel
Save