class myPowerListener extends AP.BikePowerListener {
hidden enum { ITEM_BATTERY }
var items;
function initialize() {
BikePowerListener.initialize();
items = [ new ListItem("battery", 50, G.COLOR_PINK) ];
}
function onBatteryStatusUpdate(data) {
items[ITEM_BATTERY].setValue(data.batteryStatus);
}
}
Is this a bug? Or is there some other way to access this information?