mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
FS#13538 export and import battery level tables
when battery_bench is run exports a file in the rockbox directory called 'battery_levels.default' if the user wants their own levels they can rename the file battery_levels.cfg and it will be loaded at boot some minimal error checking is performed prior to using the values added manual entry Change-Id: Ia0126faced0c7229fcf8385a1bcb584b5a9dc378
This commit is contained in:
parent
3539dd5a70
commit
10f8312db4
79 changed files with 611 additions and 298 deletions
|
@ -437,6 +437,7 @@ static void init(void)
|
|||
settings_reset();
|
||||
settings_load();
|
||||
settings_apply(true);
|
||||
init_battery_tables();
|
||||
#ifdef HAVE_DIRCACHE
|
||||
init_dircache(true);
|
||||
init_dircache(false);
|
||||
|
@ -701,7 +702,9 @@ static void init(void)
|
|||
settings_reset();
|
||||
}
|
||||
#endif
|
||||
|
||||
CHART(">init_battery_tables");
|
||||
init_battery_tables();
|
||||
CHART("<init_battery_tables");
|
||||
#ifdef HAVE_DIRCACHE
|
||||
CHART(">init_dircache(true)");
|
||||
rc = init_dircache(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue