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

[charging] Use literal number for charging enable limit. Fixes JB#59821 #19

Merged
merged 1 commit into from Jan 17, 2023

Conversation

spiiroin
Copy link
Contributor

Default charging enable limit shows up as zero. This is because the values are stored in stringified form and then interpreted according to expected value type and strtol() returns zero for "(90 - 3)".

Switch to literal number as it used to be.

Signed-off-by: Simo Piiroinen simo.piiroinen@jolla.com

Copy link

@sledges sledges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Xperia 10 III, works, "Stop charging at" is shown after resetting previously bogus values with mcetool --reset-settings=/system/osso/dsm/charging.

modules/charging.h Outdated Show resolved Hide resolved
Default charging enable limit shows up as zero. This is because the
values are stored in stringified form and then interpreted according
to expected value type and strtol() returns zero for "(90 - 3)".

Switch to literal number as it used to be.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
Copy link

@sledges sledges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@spiiroin spiiroin merged commit 6cfa860 into sailfishos:master Jan 17, 2023
@spiiroin spiiroin deleted the jb59821_hysteresis_defaults branch January 17, 2023 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants