diff Joystick.cpp @ 5:328b2e0c7555

//debug
author ark
date 2017-02-05 16:19 +0100
parents d423ea399401
children
line wrap: on
line diff
--- a/Joystick.cpp	Sat Feb 04 22:59:02 2017 +0100
+++ b/Joystick.cpp	Sun Feb 05 16:19:44 2017 +0100
@@ -6,7 +6,8 @@
 
 #include "Joystick.h"
 
-#define DEBUG
+//#define DEBUG
+
 
 /**
     see Joystick.h for description.
@@ -64,11 +65,11 @@
                 centerX = x.value;
                 centerY = y.value;
                 #ifdef DEBUG
-                Serial.print(ms);
-                Serial.print(": Joystick calibrated, center=");
-                Serial.print(centerX);
-                Serial.print(",");
-                Serial.println(centerY);
+                    Serial.print(ms);
+                    Serial.print(": Joystick calibrated, center=");
+                    Serial.print(centerX);
+                    Serial.print(",");
+                    Serial.println(centerY);
                 #endif
             }
             else return;