Allow 0% battery level #48

Open
opened 2026-04-05 17:54:25 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @sctanf on 2/17/2026

Server will hide battery icon if 0% is sent, but in some cases this is a valid state. Using -1 or 255 to represent 0% would hopefully not break anything else but should properly show the icon now.

I'm not sure about certain behavior when batteryLevel in server gets cast to uint8 to send to gui, e.g. it may allow 255 and not -1.

*Originally created by @sctanf on 2/17/2026* Server will hide battery icon if 0% is sent, but in some cases this is a valid state. Using -1 or 255 to represent 0% would hopefully not break anything else but should properly show the icon now. I'm not sure about certain behavior when batteryLevel in server gets cast to uint8 to send to gui, e.g. it may allow 255 and not -1.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/SlimeVR-Server#48