Skip to content

Allow 0% battery level#1755

Merged
loucass003 merged 6 commits intomainfrom
battery-0
Apr 16, 2026
Merged

Allow 0% battery level#1755
loucass003 merged 6 commits intomainfrom
battery-0

Conversation

@sctanf
Copy link
Copy Markdown
Member

@sctanf sctanf commented Feb 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.

@github-actions github-actions Bot added Area: Hardware Protocol Related to communication with hardware/software trackers Area: GUI Related to the GUI Area: Server Related to the server labels Feb 17, 2026
@loucass003 loucass003 merged commit 428d16f into main Apr 16, 2026
12 checks passed
@loucass003 loucass003 deleted the battery-0 branch April 16, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: GUI Related to the GUI Area: Hardware Protocol Related to communication with hardware/software trackers Area: Server Related to the server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants