Is there a proper way to adjust battery monitor range for the OLED display to show first bar for example at voltages <2.5 and last bar at 4.0> ?
There is no “proper” way to do it. Some people have been adjusting the battery upper/lower limits here:
Changing those lines changes the upper/lower limits for all the battery functions in proffieos.
If you want to specifically change how the OLED battery meter works, you can change it’s math here:
Ok, and how this math works? What do I need to change?
It works very well thank you.
Seriously though; what exactly do you want it to do?
I already changed float max and min voltages to 2.6 and 4.0, but the first bar is gone already at 2.7-2.8 volts, but I want 2 bars go to 1 last bar at 2.6 volts and stay visible if voltage goes below that.
Maybe just change the floor() to a ceil()?
I don’t know, I don’t even understand what they both mean or do
ceil() modification worked, thanks