Project

General

Profile

Bug #10220 ยป ft60-paced.patch

Dan Smith, 01/06/2023 10:05 PM

View differences:

chirp/drivers/ft60.py
def _send(pipe, data):
pipe.write(data)
echo = pipe.read(len(data))
if echo != data:
raise errors.RadioError("Error reading echo (Bad cable?)")
for b in data:
b = bytes([b])
pipe.write(b)
echo = pipe.read(1)
if echo != b:
raise errors.RadioError("Error reading echo (Bad cable?)")
def _download(radio):
......
def _upload(radio):
radio.pipe.timeout = 3
_send(radio.pipe, radio.get_mmap()[0:8])
ack = radio.pipe.read(1)
    (1-1/1)