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

Battery percentage on MNTM menu style is off by one percent! #338

Closed
GameLord2011 opened this issue Dec 31, 2024 · 2 comments
Closed

Battery percentage on MNTM menu style is off by one percent! #338

GameLord2011 opened this issue Dec 31, 2024 · 2 comments
Labels
bugfix Something isn't working

Comments

@GameLord2011
Copy link
Contributor

Describe the bug.

The battery percent on the mntm menu style is one less then the percent shown on the desktop

Reproduction

  1. Turn on flipper zero.
  2. Switch menu style to mntm.

Target

Firmware, Hardware

Logs

No response

Anything else?

my suggestion for a fix is to change line 409 of menu.c to:

snprintf(bat_display, sizeof(bat_display), "%d%%", battery_percent + 1);
@956MB
Copy link
Member

956MB commented Dec 31, 2024

Probably better to use the function that's already there for that than to +1, I think. :)

@956MB 956MB added bugfix Something isn't working release-pending This is done, will be in next release labels Jan 13, 2025
@956MB
Copy link
Member

956MB commented Jan 13, 2025

37d8bf7...dbbecd9

@956MB 956MB closed this as completed Jan 13, 2025
@Willy-JL Willy-JL removed the release-pending This is done, will be in next release label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants