dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: RE: Re[2]: Complicated loop in powermgm.c
From: Nielsen Linus (ext) (
Date: 2002-08-08

> >> 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;
> NLe> Yes, I think you missed the point. The loop is probably
> supposed to filter
> NLe> the sampled data, so that a single low sampled voltage
> (due to disk access,
> NLe> for example) doesn't give a large delta.
> But THAT loop does exactly the same as my simple assignment.
> (reread my mail and tell me if I'm wrong)

Hehe. You're right. :-)

But I guess that the intention was to filter it. We'll have to ash Heikki
about that.


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