forked from pd0mz/go-dmr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous implementation hardcoded the mask for Rate 3/4 Data (0x01ff), causing CRC check failure for Rate 1/2 on both encode and decode. This patch also refactors to avoid code copying and fixes a bug where calling DataBlock.Byte() on the output of Fragment.DataBlocks() produced an incorrect CRC value due to Bytes() not resetting db.CRC before performing it's own CRC calculation.
- Loading branch information
1 parent
2851102
commit 29c2459
Showing
1 changed file
with
27 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters