Skip to content

In firmware 2.0.2 to 2.0.8 update, battery showed 0% due to integer d…#2312

Closed
melmathari wants to merge 1 commit intoBasedHardware:mainfrom
melmathari:issue-1925
Closed

In firmware 2.0.2 to 2.0.8 update, battery showed 0% due to integer d…#2312
melmathari wants to merge 1 commit intoBasedHardware:mainfrom
melmathari:issue-1925

Conversation

@melmathari
Copy link

in voltage calculation formula. Integer division of (R1 + R2) / R2 truncated the result, causing the battery voltage to be underestimated. For the fix i used floating point calculation to get accurate voltage divider ratio and convert back to integer for final result

/claim #1925

@vercel
Copy link

vercel bot commented May 5, 2025

@melmathari is attempting to deploy a commit to the kodjima33's projects Team on Vercel.

A member of the Team first needs to authorize it.

@skywinder
Copy link
Collaborator

skywinder commented May 5, 2025

Hi @melmathari,

How did you test it if you don’t have a physical Omi device?
Also, please show how to reproduce this issue.

you need to get device and test it by yourself. Also cleanup code from the useless comments at same time keep info that was there. probably ai generation cause this issue.

@skywinder skywinder marked this pull request as draft May 5, 2025 21:56
@skywinder skywinder added the firmware firmware work label May 5, 2025
@melmathari melmathari closed this May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants