Project

General

Profile

Bug #11786 » kguv920pa-mem-zero.patch

Stephen Cavilia, 01/20/2025 10:17 AM

View differences:

chirp/drivers/kguv920pa.py
_mem.rxfreq = 0xFFFFFFFF
return
# Zero the entire structure and set these fields to default values
# instead of leaving unused fields as FF
if _mem.rxfreq & 0xFF000000 == 0xFF000000:
_mem.set_raw("\x00" * (_mem.size() // 8))
_mem.unknown2_32 = 0x02
_mem.mute_mode = 0x01
_mem.rxfreq = _freq_encode(mem.freq)
if mem.duplex == "off":
_mem.txfreq = 0xFFFFFFFF
(3-3/3)