diff --git a/pyfirmata2/pyfirmata2.py b/pyfirmata2/pyfirmata2.py index ef26864..adabc02 100755 --- a/pyfirmata2/pyfirmata2.py +++ b/pyfirmata2/pyfirmata2.py @@ -230,7 +230,7 @@ def auto_setup(self): def add_cmd_handler(self, cmd, func): """Adds a command handler for a command.""" - len_args = len(inspect.getargspec(func)[0]) + len_args = len(inspect.getfullargspec(func)[0]) def add_meta(f): def decorator(*args, **kwargs):