Skip to content

Commit

Permalink
Fix download...upload sequence for icom radios
Browse files Browse the repository at this point in the history
Icom radios (which support it) always start at 9600 baud and then
transition to 38400. The UI tries to hand the upload routine a serial
at the same rate as the previous operation ended, to accelerate the
probing routine for things like Kenwood radios where the baud rate
is user-selectable. However, this causes us to try to start cloning
on icoms at the hispeed rate instead of the starting rate, which will
fail.
  • Loading branch information
kk7ds committed Dec 17, 2022
1 parent 12af68e commit 5756c34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chirp/drivers/icf.py
Expand Up @@ -898,6 +898,10 @@ def get_mmap(self):
return self._mmap

def sync_out(self):
# We always start at 9600 baud. The UI may have handed us the same
# rate we ended with last time (for radios which have variable but
# unchanging speeds) but we always have to start in low-speed mode.
self.pipe.baudrate = 9600
clone_to_radio(self)

def get_bank_model(self):
Expand Down

0 comments on commit 5756c34

Please sign in to comment.