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

Kia/Hyundai 64kWh: Fix negative temp handling #162

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

dalathegreat
Copy link
Owner

What

This PR fixes negative temperature values, that would stop inverters from operating when battery gets cold

Why

Thanks to ml265 over on the Discord server for noticing this bug. Temperatures are sent as int8, but we treat them as int16 in the code. This results in buggy values when the battery goes below freezing.

How

Values are typecasted before they enter the formatting function

@dalathegreat dalathegreat merged commit 581ca5d into main Feb 10, 2024
34 checks passed
@dalathegreat dalathegreat deleted the bugfix/kona64-negativetemps branch February 10, 2024 17:33
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.

1 participant