Skip to content

Commit

Permalink
Fix examples for issue #63
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerBroker2 committed Nov 29, 2023
1 parent e3b2f00 commit 7406763
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/data/Python/rx_data.py
Expand Up @@ -35,7 +35,7 @@ class struct(object):

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

elif link.status < 0:
elif link.status <= 0:
if link.status == txfer.CRC_ERROR:
print('ERROR: CRC_ERROR')
elif link.status == txfer.PAYLOAD_ERROR:
Expand Down
2 changes: 1 addition & 1 deletion examples/datum/Python/rx_datum.py
Expand Up @@ -17,7 +17,7 @@
y = link.rx_obj(obj_type='f')
print(y)

elif link.status < 0:
elif link.status <= 0:
if link.status == txfer.CRC_ERROR:
print('ERROR: CRC_ERROR')
elif link.status == txfer.PAYLOAD_ERROR:
Expand Down
2 changes: 1 addition & 1 deletion examples/file/Python/rx_file.py
Expand Up @@ -27,7 +27,7 @@

print(nextContents, end='')

elif link.status < 0:
elif link.status <= 0:
if link.status == txfer.CRC_ERROR:
print('ERROR: CRC_ERROR')
elif link.status == txfer.PAYLOAD_ERROR:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -6,14 +6,14 @@
setup(
name = 'pySerialTransfer',
packages = ['pySerialTransfer'],
version = '2.6.8',
version = '2.6.9',
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)',
long_description = long_description,
long_description_content_type = "text/markdown",
author = 'Power_Broker',
author_email = 'gitstuff2@gmail.com',
url = 'https://github.com/PowerBroker2/pySerialTransfer',
download_url = 'https://github.com/PowerBroker2/pySerialTransfer/archive/2.6.8.tar.gz',
download_url = 'https://github.com/PowerBroker2/pySerialTransfer/archive/2.6.9.tar.gz',
keywords = ['Arduino', 'serial', 'usb', 'protocol', 'communication'],
classifiers = [],
install_requires = ['pyserial']
Expand Down

0 comments on commit 7406763

Please sign in to comment.