mbridak / not1mm

Not1MM != N1MM, An amateur radio contest logger for Linux.
GNU General Public License v3.0
105 stars 27 forks source link

Nonsense from rigctrld causes a glitch in the matrix. #101

Closed mbridak closed 6 months ago

mbridak commented 6 months ago

Sometimes when polling the radio there will be a mismatch of information returned causing the bandmap info to blip out and return when the next poll happens.

[2024-05-10 10:48:17,009] DEBUG __main__ - poll_radio Line 3156: VFO: RPRT 0  MODE: 14051600 BW: 500

[2024-05-10 10:48:17,215] DEBUG multicast - read_datagram Line 49: datagram b'{"cmd": "RADIO_STATE", "station": "shack2-0", "band": "0", "vfoa": "RPRT 0", "mode": "14051600", "bw": "500"}'

While a minor annoyance, this may cause logging the wrong frequency/band with some unlucky timing.

We'll need to add some sanity checking to the data before it is returned.