-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: master
Are you sure you want to change the base?
Conversation
print("failed to initialize at %d bps", baudrate) | ||
exit(1) | ||
print("ok") | ||
time.sleep(0.01) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When will this finish ?
There was a problem hiding this comment.
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")) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.