Rockbox.org home
releases
current build
extras FAQ
manual
wiki
docs index mailing lists
IRC
forums bugs
patches



Rockbox mail archive

Subject: Re: Strange Infos Rockbox screen
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2003-11-21


mourad jaber wrote:
> I think it's new issue.. Just after boot, battery percentage and
> autonomy are negative ( -1% 0h -6m )...

Weird. The code is written so as not to display the value when it is -1. Where do you see this? Did you build yourself or do you run a daily build?

apps/wps-display.c:480

                case 't': /* estimated battery time */
                {
                    int t = battery_time();
                    if (t >= 0)
                        snprintf(buf, buf_size, "%dh %dm", t / 60, t % 60);
                    else
                        strncpy(buf, "?h ?m", buf_size);
                    return buf;
                }

apps/status.c:180

        if (battery_state && (info.battlevel > -1))
            statusbar_icon_battery(info.battlevel, plug_state);

-- 
Björn



Page was last modified "Mar 9 2008" The Rockbox Crew