Reset message index if we decode gets off

This commit is contained in:
Ed Gonzalez 2015-09-03 10:46:32 -05:00
parent 62abf0058c
commit 6c82100170

View file

@ -258,8 +258,8 @@ void slow_data_addDecodeData(DSTAR_MACHINE dstar, unsigned char * data, uint32 d
uint32 message_index = data[0] & SLOW_DATA_LENGTH_MASK;
if ( message_index != slow_decoder->message_index ) {
output("Out of order SLOW DATA MESSAGE SKIPPING\n");
slow_decoder->message_index = 0;
output("Out of order SLOW DATA MESSAGE setting to new index\n");
slow_decoder->message_index = message_index;
break;
}