Next-Flip / Momentum-Firmware

🐬 Feature-rich, stable and customizable Flipper Firmware
https://momentum-fw.dev
GNU General Public License v3.0
4.95k stars 203 forks source link

Power: Suppress Shutdown on Idle While Charging / Plugged In #244

Closed luu176 closed 1 month ago

luu176 commented 1 month ago

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

Willy-JL commented 1 month ago

The shutdown_idle_delay_ms value is now dynamically retrieved from the PowerSettings to ensure the timer is set accurately according to user-defined settings.

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