[chirp_devel] Fix #3737 - model detection for TH-7800 and TH-9800 too loose

Dan Smith
Tue Jun 14 18:52:15 PDT 2016


> # HG changeset patch
> # User Nathan Crapo <nathan at n4nc3o.com>
> # Date 1465700287 21600
> #      Sat Jun 11 20:58:07 2016 -0600
> # Node ID b5f69002cb9f88cd3b1a3b955f071bac11434f0a
> # Parent  c26bf979eff5f68e4504d3577e91d205556f4017
> Make radio model identification for TH-7800 and TH-9800 more specific so they don't interfere with each other, or completely different radios.  The TH-7800 was ahead of the TH-9800 in the list of Radios to identify against, so Chirp would use it for TH-7800 _and_ TH-9800 radios.  This patch makes both TH-7800 and TH-9800 drivers check their model more carefully so order of Radios Classes doesn't matter.  It's more robust that way.
> 
> TH-7800 seems to use "TH9800" for a model string too.  Check for a "TH9800" _or_ "TH7800" string in the th7800.py driver in case TYT doesn't consistently set the model or in case owners change their model name.
> 
> Fixes #3737.

In the future, please wrap long lines in the commit message and ideally
start with a single-line description followed by a blank line, followed
by the bulk of the description. That makes it render nicely in various
tools.

Thanks for fixing this!

--Dan



More information about the chirp_devel mailing list