Fix small bug at the AX.25 decoder

This commit is contained in:
Manolis Surligas 2016-04-29 22:58:56 +03:00
parent e79e98fbd8
commit fcc5452b5b
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ namespace gr
}
for(i = frame_start + sizeof(AX25_SYNC_FLAG_MAP_BIN);
i < len - sizeof(AX25_SYNC_FLAG_MAP_BIN); i++) {
i < len - sizeof(AX25_SYNC_FLAG_MAP_BIN) + 1; i++) {
/* Check if we reached the frame end */
res = (AX25_SYNC_FLAG_MAP_BIN[0] ^ ax25_frame[i]) |
(AX25_SYNC_FLAG_MAP_BIN[1] ^ ax25_frame[i + 1]) |