haruki yokota / Mbed 2 deprecated mainboardnrp2018

Dependencies:   mbed Servo

Revision:
9:10276c46b467
Parent:
1:e73cf2469f83
--- a/Input/Switch/Switch.cpp	Sat Feb 24 07:32:11 2018 +0000
+++ b/Input/Switch/Switch.cpp	Wed Jan 29 08:54:06 2020 +0000
@@ -15,6 +15,6 @@
     }
 
     bool Switch::checkPushed(int mySwitch) {
-        return mySwitch ? false : true;
+        return limitSw[mySwitch] ? false : true;
     }
 }