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.
Fork of FivePosSwitch by
Diff: FivePosSwitch.cpp
- Revision:
- 3:dcb9eef119cf
- Parent:
- 1:2e82709484bc
- Child:
- 4:10c4b7cb4e8c
--- a/FivePosSwitch.cpp Sun Oct 04 19:31:36 2015 +0000
+++ b/FivePosSwitch.cpp Sun Oct 04 19:50:26 2015 +0000
@@ -4,7 +4,7 @@
FivePosSwitch::FivePosSwitch(AnalogIn pin):_pin(pin){
}
-ACTIVE_POSITION FivePosSwitch::getPosition(){
+ACTIVE_POSITION_t FivePosSwitch::getPosition(){
float ain = _pin;
if((1.0 - TOLERANCE <= ain) && (ain <= 1.0 + TOLERANCE)) return UP;
