-
Notifications
You must be signed in to change notification settings - Fork 0
Canup bootloading changes #5
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
base: master
Are you sure you want to change the base?
Conversation
bootloader.py
Outdated
| def _validator(msg: can.Message): | ||
| # Ignore all known status messages | ||
| print(f"Can ID that come through {msg.arbitration_id}\n") | ||
| if msg.arbitration_id == NAK_ID: |
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.
extra space here lol
bootloader.py
Outdated
| else: | ||
| return True | ||
|
|
||
| for i, self.__transmission_address in enumerate( |
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.
are you overwriting the transmission address in the loop? then the NAK would not do anything. if you are overwriting, it would probably be good to instead reset transmission address (in the loop) to the dropped packet address and retransmit starting from there
peterjinweigu
left a comment
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.
looks good boss
very much in progress