Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: F1 boot + ajbrec.ajz = ?

Re: F1 boot + ajbrec.ajz = ?

From: Mike Holden <rockbox_at_mikeholden.uklinux.net>
Date: Sat, 19 Jul 2003 21:56:47 +0100 (BST)

Johan Vromans said:
> Sorry for the cryptic subject ;-).
>
> I want to track down some strange battery readings

I've been trying to track down some weirdness related to the battery
level, and thought I would post about it here in the hope that anyone else
can reproduce it.

As part of my bettery patch, I'm currently changing recorder/icons.c
function statusbar_icon_battery(). If I play around with the #ifdefs at
the top of that function, things start going screwy. The changes I am
looking at make all different paths through those macros the same:

if (global_settings.battery_type) {

so I was removing the different #ifdef paths, as they aren't needed any more.

However, various changes in that area result in the battery display being
very low numbers (like 4 or 7), instead of the actual value which is
85-100.

For example, remove the #ifdef SIIMULATOR block and the trailing #endif
for that block and recompile. It looks like there's some stack corruption
going on maybe?

Can anyone else reproduce this? I'm compiling on FM, but that may not make
any difference here.
-- 
Mike Holden
Rockbox page: http://www.mikeholden.org/~rockbox
Received on 2003-07-19

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy