[chirp_devel] [PATCH 4 of 5] [ft4] programmable keys names for the FT-65 [#4787]

DanClemmensen
Tue Feb 26 13:34:03 PST 2019


# HG changeset patch
# User DanClemmensen <DanClemmensen at gmail.com>
# Date 1551145390 28800
#      Mon Feb 25 17:43:10 2019 -0800
# Node ID 607b8b18a90e46231a2818304107f3f8d8a7173a
# Parent  b5d1b0e834e6e5fe6ed9b592d68979738fbea404
[ft4] programmable keys names for the FT-65 [#4787]
the namelist for the FT-65 programmable keys differes for the one for the FT-4

diff -r b5d1b0e834e6 -r 607b8b18a90e chirp/drivers/ft4.py
--- a/chirp/drivers/ft4.py	Mon Feb 25 17:42:30 2019 -0800
+++ b/chirp/drivers/ft4.py	Mon Feb 25 17:43:10 2019 -0800
@@ -1003,7 +1003,6 @@
 class YaesuFT4Radio(YaesuSC35GenericRadio):
     MODEL = "FT-4XR"
     _basetype = BASETYPE_FT4
-#   _idents = [FT4_MODEL_FT4XR, FT4XE]  fixme:ignore validation check for now
     valid_bands = [
         (65000000, 108000000),    # broadcast FM, receive only
         (144000000, 148000000),    # VHF, US version, TX and RX
@@ -1018,6 +1017,8 @@
     Pkeys = 2     # number of programmable keys on the FT-4
     namelen = 6   # length of the mem name display on the FT-4 front-panel
     id_str = b'IFT-35R\x00\x00V100\x00\x00'
+    legal_steps = list(STEP_CODE)
+    legal_steps.remove(6.25)       #should not remove if euro version
     # names for the setmode function for the programmable keys. Mode zero means
     # that the key is programmed for a memory not a setmode.
     SETMODES = [
@@ -1032,15 +1033,12 @@
         "tx pwr", "tx save", "vfo.spl", "vox", "wfm.rcv",       #40-44
         "w/n.dev", "wx.alert"                                   #45-46
         ]
-    legal_steps = list(STEP_CODE)
-    legal_steps.remove(6.25)       #should not remove if euro version
 
 # don't register the FT-65 in the production version until it is tested
 # @directory.register
 class YaesuFT65Radio(YaesuSC35GenericRadio):
     MODEL = "FT-65R"
     _basetype = BASETYPE_FT65
-#   _idents = []  fixme:ignore validation check for now
     valid_bands = [
         (65000000, 108000000),    # broadcast FM, receive only
         (144000000, 148000000),    # VHF, US version, TX and RX
@@ -1055,6 +1053,8 @@
     Pkeys = 4     # number of programmable keys on the FT-65
     namelen = 8   # length of the mem name display on the FT-65 front panel
     id_str=b'IH-420\x00\x00\x00V100\x00\x00'
+    legal_steps = list(STEP_CODE)
+    legal_steps.remove(6.25)       #should not remove if euro version
     # names for the setmode function for the programmable keys. Mode zero means
     # that the key is programmed for a memory not a setmode.
     SETMODES = [
@@ -1067,8 +1067,6 @@
         "step", "tot", "tx pwr", "tx save", "vfo.spl",             # 30-34
         "vox", "wfm.rcv", "wide/nar", "wx alert", "scramble"       # 35-39
         ]
-    legal_steps = list(STEP_CODE)
-    legal_steps.remove(6.25)       #should not remove if euro version
     def __init__(self):
         self.add_paramdesc("misc", ("compander", "Compander", ["ON", "OFF"]))
 



More information about the chirp_devel mailing list