From 9af835e8fe93f89ed1e861e6bd4dc6b9f401640b Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 15 Apr 2013 18:36:47 +0200 Subject: [PATCH] Battery level no longer return battery level in percentage --- examples/Xbox/XBOXRECV/XBOXRECV.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Xbox/XBOXRECV/XBOXRECV.ino b/examples/Xbox/XBOXRECV/XBOXRECV.ino index b6ae3b23..e49dee37 100644 --- a/examples/Xbox/XBOXRECV/XBOXRECV.ino +++ b/examples/Xbox/XBOXRECV/XBOXRECV.ino @@ -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"));