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

backlight: do not convert percent to string in fmt #2317

Merged
merged 1 commit into from
Jul 16, 2023
Merged

backlight: do not convert percent to string in fmt #2317

merged 1 commit into from
Jul 16, 2023

Conversation

m4rch3n1ng
Copy link
Contributor

@m4rch3n1ng m4rch3n1ng commented Jul 16, 2023

fix #2311

this removes the std::to_string conversions from percent in the backlight.cpp when passing to fmt::format. i don't think this should break anything, as percent is defined as a uint8_t.

i am not exactly certain why this was added in the first place, as this was originally added in 331b283 and has been unchanged since, and i can not see any specific reason given in either the commit or the corresponding pr.

@Alexays Alexays merged commit 7a5e702 into Alexays:master Jul 16, 2023
@m4rch3n1ng m4rch3n1ng deleted the backlight-percent branch July 16, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fixed-width fmt backlight percent aligns to the left instead of to the right
2 participants