diff options
| author | Hristo Kovachev <bger@rockbox.org> | 2006-01-25 18:29:56 +0000 |
|---|---|---|
| committer | Hristo Kovachev <bger@rockbox.org> | 2006-01-25 18:29:56 +0000 |
| commit | 495c63f867a35ac2e6aab92a530a46b3ef5143b1 (patch) | |
| tree | 24c4188728a3e1c5196506eab29978f5e5c4ac49 /firmware/powermgmt.c | |
| parent | 4781f1461fd7d3f91bea4ff84ca20b5e58ff53e3 (diff) | |
| download | rockbox-495c63f867a35ac2e6aab92a530a46b3ef5143b1.zip rockbox-495c63f867a35ac2e6aab92a530a46b3ef5143b1.tar.gz rockbox-495c63f867a35ac2e6aab92a530a46b3ef5143b1.tar.bz2 rockbox-495c63f867a35ac2e6aab92a530a46b3ef5143b1.tar.xz | |
New "battery benchmark" plugin by Alexander Spyridakis, modified a bit by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8451 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
| -rw-r--r-- | firmware/powermgmt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 7bf2d58..a9aa839 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -218,6 +218,11 @@ static long last_event_tick; static void battery_status_update(void); static int runcurrent(void); +unsigned int battery_voltage(void) +{ + return battery_centivolts; +} + void reset_poweroff_timer(void) { last_event_tick = current_tick; |