Jelle Raes / Mbed 2 deprecated VLC_decoder_finished

Dependencies:   mbed

Fork of VLC_decoder_copy_copy_omdatetkan by Jelle Raes

Revision:
5:a9d2050d7a12
Parent:
3:4fad63952e4c
--- a/main.cpp	Tue May 15 08:31:13 2018 +0000
+++ b/main.cpp	Wed May 16 08:19:42 2018 +0000
@@ -1,9 +1,18 @@
 #include "mbed.h"
 #include "manchester.h"
 
+Serial pca(USBTX, USBRX);
  
 int main(){
      manchester fukit;
      while(1){
-    fukit.decode();}
+        int i = 0;
+        i = fukit.decode();
+        if( i == 5){
+            pca.printf("stopcode not correct");
+        }
+        else{
+            pca.printf("stopcode correct");
+        }
+    }
 }
\ No newline at end of file