Fix possible bug in FSK decoder

This commit is contained in:
George Vardakis 2017-04-11 11:33:50 +03:00
parent 6f6c3c0657
commit be9f1212be
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();
}