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

LEAF PDM/Inverter: Unify MPRUN handling to save memory #127

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

dalathegreat
Copy link
Contributor

@dalathegreat dalathegreat commented Dec 3, 2024

What

This PR aims to save some memory (6 bytes!) and simplify the code. We also lower CPU usage by sending the 50B message at 100ms instead of 10ms.

How

We use correct Nissan terminology (MPRUN for the counters), and use the same variable for all 10ms messages.

@dalathegreat dalathegreat changed the title LEAF PDM: Unify MPRUN handling to save memory LEAF PDM/Inverter: Unify MPRUN handling to save memory Dec 3, 2024
@damienmaguire damienmaguire merged commit 22aec5b into damienmaguire:master Dec 5, 2024
1 check passed
@damienmaguire
Copy link
Owner

Thanks Dala

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