Filter invalid freqs

This commit is contained in:
Nonoo 2020-11-01 16:57:58 +01:00
parent ffaa5df63c
commit 47a22e5cce

View file

@ -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)