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

update for abr function #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

update for abr function #82

wants to merge 2 commits into from

Conversation

jaxxzer
Copy link
Member

@jaxxzer jaxxzer commented Feb 20, 2020

No description provided.

print("failed to initialize at %d bps", baudrate)
exit(1)
print("ok")
time.sleep(0.01)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When will this finish ?

Copy link
Member Author

@jaxxzer jaxxzer Feb 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when you push ctrl + c like ping, or the sensor fails to communicate

if baudrate is not None:
self.iodev.baudrate = baudrate
self.iodev.send_break()
self.iodev.write("U".encode("utf-8"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that this should be ascii, since it's the U char that we want, and not the utf-8 representation.

Copy link
Member Author

@jaxxzer jaxxzer Feb 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks correct on the wire with a probe (0x55), I will try ascii though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants