Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Input/Switch/Switch.cpp
- 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;
     }
 }