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

Default battery voltages if none stored in config. #21

Merged
merged 1 commit into from
Sep 20, 2021
Merged

Default battery voltages if none stored in config. #21

merged 1 commit into from
Sep 20, 2021

Conversation

RogerSelwyn
Copy link
Contributor

@RogerSelwyn RogerSelwyn commented Sep 16, 2021

Default the values, otherwise 'None' gets passed to the calculation later on and the battery % is returned as unknown.

I also note that in surepy the voltages are 1.6 and 1.2, whilst in sureha the voltages are 1.6 and 1.25. Not sure if that is intentional.

Default the values, otherwise 'None' gets passed to the calculation later on and the battery % is returned as unknown.

I also note that in Surrey the voltages are 1.6 and 1.2, whilst in sure has the voltages are 1.6 and 1.25. Not sure is that is intentional.
@benleb
Copy link
Owner

benleb commented Sep 17, 2021

Hey, thanks! I just pushed a solution for this issue but I think I like yours more 😂 I will have another look tomorrow, too tired now 🥱

@benleb benleb merged commit 9a753d0 into benleb:dev Sep 20, 2021
@RogerSelwyn RogerSelwyn deleted the patch-1 branch September 28, 2021 11:52
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