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[2]: Complicated loop in powermgm.c

Re[2]: Complicated loop in powermgm.c

From: Uwe Freese <mail_at_uwe-freese.de>
Date: Thu, 8 Aug 2002 14:50:49 +0200

Hello,

Nielsen Linus (ext) wrote on Thursday, August 8, 2002, 12:55:45 PM:

>> 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)

Bye, Uwe.
Received on 2002-08-08

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy