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: Strange Infos Rockbox screen

Re: Strange Infos Rockbox screen

From: Björn Stenberg <bjorn_at_haxx.se>
Date: Fri, 21 Nov 2003 14:21:07 +0100

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
Received on 2003-11-21

Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew