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

Fix: Disable Chained CAN Sending During OTA Updates #497

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

amarofarinha
Copy link
Collaborator

What

This change disables certain CAN sending operations that are chained within the receiving methods during an OTA (Over-the-Air) update. Previously, only some sending operations were blocked, leading to incomplete coverage of CAN communication control during the update process.

Why

The prior implementation did not fully prevent CAN communication during OTA, particularly in cases where sending operations were triggered as part of receiving routines. This oversight allowed some chained communications to continue, potentially leading to incomplete or inconsistent behavior during OTA updates. This update corrects that behavior by ensuring these specific sending operations are disabled, thereby preventing any unintended communication during the OTA process.

How

Logic has been added to disable all CAN sending operations in the transmit_can method. The system now ensures that any sending chained to receiving actions is fully paused until the update process completes.

@amarofarinha
Copy link
Collaborator Author

Tested on Stark+Leaf production

Copy link
Owner

@dalathegreat dalathegreat left a comment

Choose a reason for hiding this comment

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

LGTM! But could we rename can_send_CAN to allowed_to_send_CAN? And put the return inside {} to match the rest of the codestyle?

@amarofarinha
Copy link
Collaborator Author

approving revie

TM! But could we rename can_send_CAN to allowed_to_send_CAN? And put the return inside {} to match the rest of the codestyle?

done. merging

@amarofarinha amarofarinha merged commit d874df5 into dalathegreat:main Sep 28, 2024
29 checks passed
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