From e771b97745f1457d2b1beaf737039d650ea57208 Mon Sep 17 00:00:00 2001 From: Jarno Lehtinen Date: Fri, 11 Nov 2016 17:50:27 +0200 Subject: [PATCH] Update Wii_Extension_debug.ino --- Wii_Extension_debug.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Wii_Extension_debug.ino b/Wii_Extension_debug.ino index e466849..e431b4c 100644 --- a/Wii_Extension_debug.ino +++ b/Wii_Extension_debug.ino @@ -98,12 +98,7 @@ void loop() { delay(10); } - #ifdef DEBUG - unsigned long d = micros()-t; - Serial.print(d); - #endif - - + // Nunchuck uint8_t SX = data[0]; uint8_t SY = ~data[1]; @@ -139,6 +134,11 @@ void loop() { //http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Classic_Controller + #ifdef DEBUG + unsigned long d = micros()-t; + Serial.print(d); + #endif + #ifdef DEBUG /*for (uint8_t i = 0; i < JOYSTICK_DATA_SIZE; i++) {