Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of VLC_decoder by
Diff: manchester.cpp
- Revision:
- 2:487a58ce256c
- Parent:
- 1:b89430efe68e
diff -r b89430efe68e -r 487a58ce256c manchester.cpp --- 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; }