-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Power: Suppress Shutdown on Idle While Charging / Plugged In #244
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also please run ./fbt format
no point, when user changes this value, it is updated in service accordingly. this is just loading from file when theres no need to :D |
Co-authored-by: WillyJL <49810075+Willy-JL@users.noreply.github.com>
Co-authored-by: WillyJL <49810075+Willy-JL@users.noreply.github.com>
avoids the 'it is now safe to unplug cable' screen
This implements safeguard to prevent the flipper zero from shutting down while it's in a charging state. By doing so, we ensure that the battery charges fully without interruption.
What's new
power_auto_shutdown_timer_callback
function to check the power state.shutdown_idle_delay_ms
shutdown_idle_delay_ms
value is now dynamically retrieved from the PowerSettings to ensure the timer is set accurately according to user-defined settings.