Bryce Williams / FivePosSwitch

Fork of FivePosSwitch by Bryce Williams

Revision:
4:10c4b7cb4e8c
Parent:
3:dcb9eef119cf
diff -r dcb9eef119cf -r 10c4b7cb4e8c FivePosSwitch.cpp
--- a/FivePosSwitch.cpp	Sun Oct 04 19:50:26 2015 +0000
+++ b/FivePosSwitch.cpp	Sun Oct 04 20:07:52 2015 +0000
@@ -4,7 +4,7 @@
 FivePosSwitch::FivePosSwitch(AnalogIn pin):_pin(pin){
 }
 
-ACTIVE_POSITION_t FivePosSwitch::getPosition(){
+ACTIVE_POSITION FivePosSwitch::getPosition(){
     float ain = _pin;
     
     if((1.0 - TOLERANCE <= ain) && (ain <= 1.0 + TOLERANCE)) return UP;