Driver for a binary on/off presence device

Dependents:   mbed-IBooth-ETH

Files at this revision

API Documentation at this revision

Comitter:
andcor02
Date:
Wed Feb 11 12:36:27 2015 +0000
Parent:
6:b1c665320f0c
Commit message:
Working Set for long distance door

Changed in this revision

Presence.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b1c665320f0c -r f12e18827f3e Presence.cpp
--- a/Presence.cpp	Mon Feb 09 16:36:27 2015 +0000
+++ b/Presence.cpp	Wed Feb 11 12:36:27 2015 +0000
@@ -45,7 +45,7 @@
 }
 
 
-bool Presence::isPresent(){
+bool presence::isPresent(){
     bool new_detection = (_true_on_rise && _myint == 1) || (!_true_on_rise && _myint == 0);
     if(new_detection)debounce_timer.reset();
     //Poll the pin and update value...