Rockbox mail archiveSubject: RE: Complicated loop in powermgm.c
RE: Complicated loop in powermgm.c
From: Nielsen Linus (ext) <"Nielsen>
Date: Thu, 8 Aug 2002 12:55:45 +0200
> 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 -
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.
Received on 2002-08-08
Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew