|
Rockbox mail archiveSubject: WPS battery levels wrong?WPS battery levels wrong?
From: gl <gl_at_ntlworld.com>
Date: Sun, 5 Mar 2006 09:39:18 -0000 I'm confused about the number of WPS battery levels. The CustomWPS online docs suggest there are 5 ("0-4"), and 4-segment battery bitmaps are common. However, the code in gwps-common.c does this: int l = battery_level(); *intval = l / 20 + 1; Which produces 1-6, presumably: 1 = 0-19% 2 = 20-39% 3 = 40-59% 4 = 60-79% 5 = 80-99% 6 = 100% (fully charged) You can confirm this with: BATTERY: ?%bl<1,2,3,4,5,6> Shouldn't the code use / 25? -- glReceived on 2006-03-05 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |