Taiki Maruyama / Mbed 2 deprecated charyaaaaaaaaa

Dependencies:   mbed Servo

Revision:
10:a81546661fb5
Parent:
9:49e851ad441e
--- a/Input/Switch/Switch.cpp	Sat Feb 23 02:47:39 2019 +0000
+++ b/Input/Switch/Switch.cpp	Sat Feb 23 05:34:18 2019 +0000
@@ -2,9 +2,9 @@
 #include <stdint.h>
 
 DigitalIn limitSw[] = {
-    //DigitalIn(LIMITSW0_PIN),
-    //DigitalIn(LIMITSW1_PIN),
-    //DigitalIn(LIMITSW2_PIN),
+    DigitalIn(LIMITSW0_PIN),
+    DigitalIn(LIMITSW1_PIN),
+    DigitalIn(LIMITSW2_PIN),
     DigitalIn(LIMITSW3_PIN),
 };
 
@@ -15,6 +15,6 @@
     }
 
     bool Switch::checkPushed(int mySwitch) {
-        return mySwitch ? false : true;
+        return limitSw[mySwitch] ? false : true;
     }
 }