Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for CRC error #63

Closed
8sawte8 opened this issue Sep 25, 2022 · 1 comment
Closed

Check for CRC error #63

8sawte8 opened this issue Sep 25, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@8sawte8
Copy link

8sawte8 commented Sep 25, 2022

Hello,

thank you for this great package!

I wanted to understand your code and manipulated some lines in CRC.py.

But with your example Python script, nothing printed and I didn't get a Python error. After a while, I realized that:

CRC_ERROR = 0

So I think in the example script it should be:

if link.status <= 0:

 while not link.available():
                if link.status <= 0:
                    if link.status == txfer.CRC_ERROR:
                        print('ERROR: CRC_ERROR')
                    elif link.status == txfer.PAYLOAD_ERROR:
                        print('ERROR: PAYLOAD_ERROR')
                    elif link.status == txfer.STOP_BYTE_ERROR:
                        print('ERROR: STOP_BYTE_ERROR')
                    else:
                        print('ERROR: {}'.format(link.status))

Kind regards,
8sawte8

@PowerBroker2 PowerBroker2 self-assigned this Sep 26, 2022
@PowerBroker2 PowerBroker2 added the bug Something isn't working label Sep 26, 2022
@PowerBroker2
Copy link
Owner

That's correct, I'll fix at some point. Thanks!

PowerBroker2 added a commit that referenced this issue Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants