Rockbox mail archiveSubject: 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?
case 't': /* estimated battery time */
int t = battery_time();
if (t >= 0)
snprintf(buf, buf_size, "%dh %dm", t / 60, t % 60);
strncpy(buf, "?h ?m", buf_size);
if (battery_state && (info.battlevel > -1))
-- BjörnReceived on 2003-11-21
Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew