27 Mar
2016
27 Mar
'16
4:38 p.m.
- # set a delay based on the OS
- if sys.platform in ["win32", "cygwin"]:
# we are in windows
delay = 0.015
- else:
# we are in linux/mac
delay = 0.033
Where does this come from? Nowhere else in the CHIRP source do we have to adjust timing like this based on the platform. I strongly object to this without real justification.
_send(radio, _make_frame("X", addr, TX_BLOCK_SIZE, d), delay)
This just makes _send() delay by 15 or 33ms *after* the write, which makes no sense. If you need to delay, do it here before you do the read.
There may be a better way of doing this. But if this isn't done, Linux sends too fast and the radio doesn't respond after uploading the 3rd block. If Windows get the same dealy, then it take 2.5 to 4.5 minutes to upload to the radio.
Jim