mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -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
|
|
@ -86,6 +86,8 @@ static void* plugin_get_audio_buffer(size_t *buffer_size);
|
|||
static void plugin_release_audio_buffer(void);
|
||||
static void plugin_tsr(int (*exit_callback)(bool));
|
||||
|
||||
extern struct battery_tables_t device_battery_tables; /* powermgmt.c */
|
||||
|
||||
#ifdef HAVE_PLUGIN_CHECK_OPEN_CLOSE
|
||||
/* File handle leak prophylaxis */
|
||||
#include "bitarray.h"
|
||||
|
|
@ -842,6 +844,7 @@ static const struct plugin_api rockbox_api = {
|
|||
/* new stuff at the end, sort into place next time
|
||||
the API gets incompatible */
|
||||
add_playbacklog,
|
||||
&device_battery_tables,
|
||||
};
|
||||
|
||||
static int plugin_buffer_handle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue