Merge Power service refactor, rework power settings

- Merge OFW power service refactor stuff
- Move charge cap variable to service
- Mirror settings usage of desktop and bt services for power settings
- Proper power settings struct, no more weird settings pubsub
- Load power settings on SD insert
- Set shutdown on idle time in main power settings menu, not in submenu
- Update battery icon visibility in power tick event
- Remove unused power functions (power_trigger_ui_update(), power_set_battery_icon_enabled())
This commit is contained in:
Willy-JL
2024-08-13 21:25:19 +02:00
parent e5a9c22547
commit 1a1b3f117a
15 changed files with 445 additions and 354 deletions

View File

@@ -3,5 +3,5 @@
// Instead of copying the file, can (ab)use the preprocessor to insert the source code here
// Then, we still use the Header from original code as if nothing happened
// LOAD_POWER_SETTINGS(), SAVE_POWER_SETTINGS()
#include <applications/services/power/power_settings.c>
// power_get_settings(), power_set_settings()
#include <applications/services/power/power_service/power_api.c>