Merge pull request #73 from GVardakis/fsk_bug_fix

Fix bug in FSK decoder for small length preambles
This commit is contained in:
Manolis Surligas 2017-04-12 10:49:24 +03:00 committed by GitHub
commit a94cf99a20
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ namespace gr
d_decoded_bits = 0;
if(d_shifting_byte == d_preamble[d_decoded_bytes]){
d_decoded_bytes++;
if(d_decoded_bytes == d_search_for_sync_thrhld){
if(d_decoded_bytes >= d_search_for_sync_thrhld){
/* End of the preamble. It's time for the sync word */
searching_sync_word();
}