From 24cf5325a4350e94693f8ff0332dcb6a5841753c Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 4 Aug 2020 13:54:30 +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 8de2b65..d47c62f 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 isalnum(command) and command in self._callbacks: + if command.isalnum() and command in self._callbacks: cb = self._callbacks[command] if cb: cb(argument)