にいむら にいむら
/
mainboardnrp2018
unkounko
Diff: Input/Switch/Switch.cpp
- Revision:
- 11:88f17bc0724f
- Parent:
- 1:e73cf2469f83
diff -r a765515594bd -r 88f17bc0724f Input/Switch/Switch.cpp --- a/Input/Switch/Switch.cpp Thu Feb 21 01:04:40 2019 +0000 +++ b/Input/Switch/Switch.cpp Mon Feb 25 05:48:20 2019 +0000 @@ -4,8 +4,8 @@ DigitalIn limitSw[] = { DigitalIn(LIMITSW0_PIN), DigitalIn(LIMITSW1_PIN), - DigitalIn(LIMITSW2_PIN), - DigitalIn(LIMITSW3_PIN), + // DigitalIn(LIMITSW2_PIN), + // DigitalIn(LIMITSW3_PIN), }; namespace SWITCH @@ -15,6 +15,6 @@ } bool Switch::checkPushed(int mySwitch) { - return mySwitch ? false : true; + return limitSw[mySwitch] ? false : true; } }