mirror of
https://github.com/kk7ds/chirp
synced 2026-08-13 17:51:36 -04:00
tmd710: Fix clone mode at lower speeds
For these radios, if the baud rate is too low, the 250ms default serial timeout will result in failure to read entire blocks right off the bat. Increase it so it's always reasonable.
This commit is contained in:
parent
2c29c06670
commit
484c6aef14
1 changed files with 4 additions and 0 deletions
|
|
@ -83,6 +83,10 @@ def _connect_radio(radio):
|
|||
global BAUD
|
||||
xid = "D710" + radio.SHORT
|
||||
resp = kenwood_live.KenwoodLiveRadio(None).get_id(radio.pipe)
|
||||
# If we are running at 9600 baud (the default), then the default
|
||||
# timeout of 250ms is too short for some clone-mode responses. 1s should
|
||||
# always be enough.
|
||||
radio.pipe.timeout = 1
|
||||
BAUD = radio.pipe.baudrate # As detected by kenwood_live
|
||||
LOG.debug("Got [%s] at %i Baud." % (resp, BAUD))
|
||||
resp = resp[3:] # Strip "ID " prefix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue