mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-03-12 08:13:49 +01:00
Filter invalid freqs
This commit is contained in:
parent
ffaa5df63c
commit
47a22e5cce
|
|
@ -114,6 +114,9 @@ func (s *civControlStruct) decodeFreq(d []byte) {
|
|||
f += uint(s2) * uint(math.Pow(10, float64(pos)))
|
||||
pos++
|
||||
}
|
||||
if f == 0 {
|
||||
return
|
||||
}
|
||||
s.state.freq = f
|
||||
statusLog.reportFrequency(s.state.freq)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue