Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit e77f77b

Browse files
committed
Added small delay in pymata_serial
1 parent 7d28d52 commit e77f77b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

PyMata/pymata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, port_id='/dev/ttyACM0', bluetooth=True, verbose=True):
121121

122122
if self.verbose:
123123
print("\nPython Version %s" % sys.version)
124-
print('\nPyMata version 2.08 Copyright(C) 2013-15 Alan Yorinks All rights reserved.')
124+
print('\nPyMata version 2.09 Copyright(C) 2013-15 Alan Yorinks All rights reserved.')
125125

126126
# Instantiate the serial support class
127127
self.transport = PyMataSerial(port_id, self.command_deque)

PyMata/pymata_serial.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def run(self):
122122
if self.arduino.inWaiting():
123123
c = self.arduino.read()
124124
self.command_deque.append(ord(c))
125+
else:
126+
time.sleep(.1)
125127
except OSError:
126128
pass
127129
except IOError:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
setup(
66
name='PyMata',
77
packages=['PyMata'],
8-
version='2.08',
8+
version='2.09',
99
description="A Python Protocol Abstraction Library For Arduino Firmata",
1010
author='Alan Yorinks',
1111
author_email='[email protected]',

0 commit comments

Comments
 (0)