
# HG changeset patch # User Dan Smith dsmith@danplanet.com # Date 1341019320 25200 # Node ID ad0be2483a7cb68e85c2ffdd597befcfcfdfca54 # Parent 6aff75e219ac3ce6953ac7d3d4768597a597529b Don't declare a bunch of cross tone modes by default
Make radio drivers do them explicitly if they support them
diff -r 6aff75e219ac -r ad0be2483a7c chirp/chirp_common.py --- a/chirp/chirp_common.py Fri Jun 29 18:21:59 2012 -0700 +++ b/chirp/chirp_common.py Fri Jun 29 18:22:00 2012 -0700 @@ -767,7 +767,7 @@ self.init("valid_name_length", 6, "The maximum number of characters in a memory's " + "alphanumeric tag") - self.init("valid_cross_modes", list(CROSS_MODES), + self.init("valid_cross_modes", [], "Supported tone cross modes") self.init("valid_dtcs_pols", ["NN", "RN", "NR", "RR"], "Supported DTCS polarities") @@ -824,7 +824,6 @@ msg = ValidationError("Cross tone mode %s not supported" % \ mem.cross_mode) msgs.append(msg) - if self.has_dtcs_polarity and \ mem.dtcs_polarity not in self.valid_dtcs_pols: msg = ValidationError("DTCS Polarity %s not supported" % \