From b3303d14fc9594efa3b2d538c29ce38da9bb1056 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 20 Apr 2015 23:40:34 +0200 Subject: [PATCH] Set checkBatteryLevel false only when it was actually true --- Wii.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Wii.cpp b/Wii.cpp index aef7613a..4bbf4c91 100755 --- a/Wii.cpp +++ b/Wii.cpp @@ -332,16 +332,17 @@ void WII::ACLData(uint8_t* l2capinbuf) { setReportMode(false, 0x31); // If there is no extension connected we will read the buttons and accelerometer } } + else { #ifdef EXTRADEBUG - else Notify(PSTR("\r\nChecking battery level"), 0x80); #endif + checkBatteryLevel = false; // Check for extensions by default + } #ifdef DEBUG_USB_HOST if(l2capinbuf[12] & 0x01) Notify(PSTR("\r\nWARNING: Battery is nearly empty"), 0x80); #endif - checkBatteryLevel = false; // Check for extensions by default break; case 0x21: // Read Memory Data if((l2capinbuf[12] & 0x0F) == 0) { // No error