# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1389912343 -3600 # Node ID 2542bd064fff967c696d05ff39397de2592e4786 # Parent 5236e0423182974b1c7c8851105fa3f3fa1d173e [ft8x7] Reduce timeout during clone-in for blocks after the first A long delay is necessary for the first block to give user the time to start clone procedure on the radio but for subsequent blocks a 10 sec timeout is more then enough Help feature #1375
diff -r 5236e0423182 -r 2542bd064fff chirp/ft817.py --- a/chirp/ft817.py Thu Jan 16 23:00:01 2014 +0100 +++ b/chirp/ft817.py Thu Jan 16 23:45:43 2014 +0100 @@ -295,7 +295,12 @@ return rp
def _read(self, block, blocknum, lastblock): - for _i in range(0, 60): + # be very patient at first block + if blocknum == 0: + attempts = 60 + else: + attempts = 5 + for _i in range(0, attempts): data = self.pipe.read(block+2) if data: break