From fc678bd001937f4a218e57db629c7dae8648bf4a Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 30 Nov 2021 19:29:54 +0000 Subject: battery_bench: Log battery current information Works on targets supporting CURRENT_MEASURE. Change-Id: I021b995c46fab923287ad54e72863695ef9ed58a --- apps/plugin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index f4bb91988a..7306e3fcba 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -155,7 +155,7 @@ int plugin_open(const char *plugin, const char *parameter); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 246 +#define PLUGIN_API_VERSION 247 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -931,6 +931,7 @@ struct plugin_api { bool (*warn_on_pl_erase)(void); int (*playlist_insert_playlist)(struct playlist_info* playlist, const char *filename, int position, bool queue); + int (*battery_current)(void); }; /* plugin header */ -- cgit v1.2.3