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: Complicated loop in powermgm.c
From: Nielsen Linus (ext) (Linus.Nielsen_at_elema.siemens.se)
Date: 2002-08-08


> Hello,
>
> Isn't this a little bit comlicated, or did I miss the point?
>
> for (i = 0; i < CHARGE_END_ZEROD; i++)
> delta += power_history[POWER_HISTORY_LEN-1-i]*100 -
> power_history[POWER_HISTORY_LEN-1-i-1]*100;

Yes, I think you missed the point. The loop is probably supposed to filter
the sampled data, so that a single low sampled voltage (due to disk access,
for example) doesn't give a large delta.

/Linus



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa