Skip to content

Commit 7406763

Browse files
committed
Fix examples for issue #63
1 parent e3b2f00 commit 7406763

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/data/Python/rx_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class struct(object):
3535

3636
print('{}{} | {}'.format(testStruct.z, testStruct.y, arr))
3737

38-
elif link.status < 0:
38+
elif link.status <= 0:
3939
if link.status == txfer.CRC_ERROR:
4040
print('ERROR: CRC_ERROR')
4141
elif link.status == txfer.PAYLOAD_ERROR:

examples/datum/Python/rx_datum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
y = link.rx_obj(obj_type='f')
1818
print(y)
1919

20-
elif link.status < 0:
20+
elif link.status <= 0:
2121
if link.status == txfer.CRC_ERROR:
2222
print('ERROR: CRC_ERROR')
2323
elif link.status == txfer.PAYLOAD_ERROR:

examples/file/Python/rx_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
print(nextContents, end='')
2929

30-
elif link.status < 0:
30+
elif link.status <= 0:
3131
if link.status == txfer.CRC_ERROR:
3232
print('ERROR: CRC_ERROR')
3333
elif link.status == txfer.PAYLOAD_ERROR:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
setup(
77
name = 'pySerialTransfer',
88
packages = ['pySerialTransfer'],
9-
version = '2.6.8',
9+
version = '2.6.9',
1010
description = 'Python package used to transmit and receive low overhead byte packets - especially useful for PC<-->Arduino USB communication (compatible with https://github.com/PowerBroker2/SerialTransfer)',
1111
long_description = long_description,
1212
long_description_content_type = "text/markdown",
1313
author = 'Power_Broker',
1414
author_email = 'gitstuff2@gmail.com',
1515
url = 'https://github.com/PowerBroker2/pySerialTransfer',
16-
download_url = 'https://github.com/PowerBroker2/pySerialTransfer/archive/2.6.8.tar.gz',
16+
download_url = 'https://github.com/PowerBroker2/pySerialTransfer/archive/2.6.9.tar.gz',
1717
keywords = ['Arduino', 'serial', 'usb', 'protocol', 'communication'],
1818
classifiers = [],
1919
install_requires = ['pyserial']

0 commit comments

Comments
 (0)