APP 4

Dependencies:   mbed CRC16 mbed-rtos

Revision:
13:195826b8c61b
Parent:
6:3181f546e812
Child:
17:8d8c33bdcaf5
diff -r 097ae746d8ac -r 195826b8c61b Manchester.h
--- a/Manchester.h	Sun Feb 21 21:47:13 2016 +0000
+++ b/Manchester.h	Mon Feb 22 17:52:26 2016 +0000
@@ -5,7 +5,7 @@
     return (bit == clock);
 }
 
-inline bool decode(bool manchester, bool clock)
+inline bool decode(bool manchester1, bool manchester2)
 {
-    return (manchester == clock);
+    return (manchester1 && !manchester2);
 }