Dependencies:   mbed

Fork of VLC_decoder_test by Jelle Raes

Revision:
2:487a58ce256c
Parent:
1:b89430efe68e
Child:
3:4fad63952e4c
--- a/manchester.cpp	Mon May 14 09:18:22 2018 +0000
+++ b/manchester.cpp	Mon May 14 09:29:08 2018 +0000
@@ -93,10 +93,12 @@
 }
 bool manchester::vlcDetected(){
     int i = 0;
+    bool detected = false;
     while(i<DELAY){
         if(signal.read() != 0){
-            i = 0; 
+            detected = true
         }
         wait_us(100)   
     }
+    return detected;
 }