From f02cd18ad027cdb4992a19a16cfbd336ffb63124 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 30 Nov 2021 01:26:59 +0000 Subject: powermgmt: Refactor battery current estimation Create a new battery_current() function to report the the battery's charging/discharging current. Move the old runcurrent() implementation into it and clean up some of the related defines. Change-Id: I7dbe5b6532d291fa72add1cb23b30e3cbac8c3ca --- firmware/export/config/samsungypr1.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/export/config/samsungypr1.h') diff --git a/firmware/export/config/samsungypr1.h b/firmware/export/config/samsungypr1.h index 50abfa323e..8ef76d60af 100644 --- a/firmware/export/config/samsungypr1.h +++ b/firmware/export/config/samsungypr1.h @@ -163,5 +163,6 @@ /* Define current usage levels. */ #define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */ #define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */ +#define CURRENT_RECORD 2 /* FIXME: placeholder value */ #endif /* SIMULATOR */ -- cgit v1.2.3