[chirp_devel] [PATCH] [New Model] Support for the BTECH Mobile Radios, update 1 for #3015
Jim Unroe
Sun Mar 27 16:38:34 PDT 2016
>> + # 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
More information about the chirp_devel
mailing list