Bug #10220 ยป ft60-paced.patch
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)
|