Skip to content

Commit

Permalink
Use decimated packet configuration in preamble search. Fixes #47.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed Mar 8, 2016
1 parent e8ea9d9 commit 31bbf3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (d *Decoder) Search() (indexes []int) {
for {
idx = d.preambleFinder.next(slice[offset:])
if idx != -1 {
indexes = append(indexes, (offset+idx)*d.Cfg.SymbolLength2+symbolOffset)
indexes = append(indexes, (offset+idx)*d.DecCfg.SymbolLength2+symbolOffset)
offset += idx + 1
} else {
break
Expand Down

0 comments on commit 31bbf3f

Please sign in to comment.