diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-11-30 01:26:59 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-12-05 15:11:34 -0500 |
commit | f02cd18ad027cdb4992a19a16cfbd336ffb63124 (patch) | |
tree | a412532ad38baac5390015d89696a5f67eaabe57 /firmware/export/config/samsungypr1.h | |
parent | 8a8dfa0e52d0d7001d52ff29a2da60986b3e5101 (diff) | |
download | rockbox-f02cd18ad027cdb4992a19a16cfbd336ffb63124.tar.gz rockbox-f02cd18ad027cdb4992a19a16cfbd336ffb63124.zip |
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
Diffstat (limited to 'firmware/export/config/samsungypr1.h')
-rw-r--r-- | firmware/export/config/samsungypr1.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ | |||
163 | /* Define current usage levels. */ | 163 | /* Define current usage levels. */ |
164 | #define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */ | 164 | #define CURRENT_NORMAL 24 /* ~25h, on 600mAh that's about 24mA */ |
165 | #define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */ | 165 | #define CURRENT_BACKLIGHT 62 /* ~6,5h -> 92mA. Minus 24mA normal that gives us 68mA */ |
166 | #define CURRENT_RECORD 2 /* FIXME: placeholder value */ | ||
166 | 167 | ||
167 | #endif /* SIMULATOR */ | 168 | #endif /* SIMULATOR */ |