From 61b11b416785d804dcfe06960b4702122e65215c Mon Sep 17 00:00:00 2001 From: "MisterYsLab@gmail.com" Date: Mon, 7 Dec 2015 08:55:36 -0500 Subject: [PATCH] Implemented gengshenghong's performance fix --- PyMata/pymata.py | 2 +- PyMata/pymata_command_handler.py | 4 ++-- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PyMata/pymata.py b/PyMata/pymata.py index 0df5684..b169e69 100644 --- a/PyMata/pymata.py +++ b/PyMata/pymata.py @@ -121,7 +121,7 @@ def __init__(self, port_id='/dev/ttyACM0', bluetooth=True, verbose=True): if self.verbose: print("\nPython Version %s" % sys.version) - print('\nPyMata version 2.10 Copyright(C) 2013-15 Alan Yorinks All rights reserved.') + print('\nPyMata version 2.11 Copyright(C) 2013-15 Alan Yorinks All rights reserved.') # Instantiate the serial support class self.transport = PyMataSerial(port_id, self.command_deque) diff --git a/PyMata/pymata_command_handler.py b/PyMata/pymata_command_handler.py index 6378356..bab2de6 100644 --- a/PyMata/pymata_command_handler.py +++ b/PyMata/pymata_command_handler.py @@ -830,8 +830,8 @@ def run(self): # go to the beginning of the loop to process the next command continue - else: - time.sleep(.1) + else: + time.sleep(.1) diff --git a/setup.py b/setup.py index 67040f6..3cb843c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='PyMata', packages=['PyMata'], - version='2.10', + version='2.11', description="A Python Protocol Abstraction Library For Arduino Firmata", author='Alan Yorinks', author_email='MisterYsLab@gmail.com',