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?
--
gl

Reply via email to