From 31bbf3f14626837d4a724d26db363d8880b6913a Mon Sep 17 00:00:00 2001 From: bemasher Date: Mon, 7 Mar 2016 21:37:15 -0700 Subject: [PATCH] Use decimated packet configuration in preamble search. Fixes #47. --- decode/decode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode/decode.go b/decode/decode.go index 8538ae7cb..64ad6fbd6 100644 --- a/decode/decode.go +++ b/decode/decode.go @@ -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