From 27532704a5b45856d6653afe297625663cd6a249 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 4 Aug 2020 13:55:50 +0200 Subject: [PATCH] fix serial cmd --- raspberry/roberto/Serial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspberry/roberto/Serial.py b/raspberry/roberto/Serial.py index d47c62f..1f2534c 100644 --- a/raspberry/roberto/Serial.py +++ b/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)