Skip to content

Commit

Permalink
Add decimation factor checking. Clarify warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed Jun 7, 2015
1 parent 8f3cb52 commit 7f05214
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion decode/decode.go
Expand Up @@ -70,7 +70,11 @@ func (d Decoder) Log() {
log.Println("Preamble:", d.Cfg.Preamble)

if d.Cfg.SymbolLength%d.Decimation != 0 {
log.Println("Warning: decimation factor gives non-integer symbol length, sensitivity may be poor")
log.Println("Warning: decimated symbol length is non-integral, sensitivity may be poor")
}

if d.DecCfg.SymbolLength < 3 {
log.Fatal("Error: illegal decimation factor, choose a smaller factor")
}

return
Expand Down

0 comments on commit 7f05214

Please sign in to comment.