Battery level no longer return battery level in percentage

This commit is contained in:
Kristian Sloth Lauszus 2013-04-15 18:36:47 +02:00
parent b88de72826
commit 9af835e8fe

View file

@ -89,8 +89,8 @@ void loop() {
if(Xbox.getButtonClick(i,XBOX)) {
Xbox.setLedMode(i,ROTATING);
Serial.print(F("Xbox (Battery: "));
Serial.print(Xbox.getBatteryLevel(i));
Serial.println(F("%)"));
Serial.print(Xbox.getBatteryLevel(i)); // The battery level in the range 0-3
Serial.println(F(")"));
}
if(Xbox.getButtonClick(i,SYNC))
Serial.println(F("Sync"));