From cec57c9d4cc9322b5a0b7d2095443a0c2d5854f3 Mon Sep 17 00:00:00 2001 From: bemasher Date: Thu, 20 Sep 2018 17:29:37 -0600 Subject: [PATCH] Store decoder packet config in r900 parser. Fixes #102 --- r900/r900.go | 1 + 1 file changed, 1 insertion(+) diff --git a/r900/r900.go b/r900/r900.go index 19c0a451d..5a5ee1331 100644 --- a/r900/r900.go +++ b/r900/r900.go @@ -162,6 +162,7 @@ func (p Parser) quantize() { // Given a list of indices the preamble exists at, decode and parse a message. func (p *Parser) Parse(pkts []protocol.Data, msgCh chan protocol.Message, wg *sync.WaitGroup) { p.once.Do(func() { + p.cfg = p.Decoder.Cfg p.signal = make([]float64, p.Decoder.Cfg.BufferLength) p.csum = make([]float64, p.Decoder.Cfg.BufferLength+1) p.filtered = make([][3]float64, p.Decoder.Cfg.BufferLength)