[chirp_devel] [PATCH] [ft4] whitespace/comment/prompts [#6583]

DanClemmensen
Tue Mar 12 13:44:00 PDT 2019


# HG changeset patch
# User DanClemmensen <DanClemmensen at gmail.com>
# Date 1552423306 25200
#      Tue Mar 12 13:41:46 2019 -0700
# Node ID 10c0009c697cd9b5f499bcbc59253b5ea47aa552
# Parent  671153757b16663bc297f7f236a8260685533c95
[ft4] whitespace/comment/prompts [#6583]
separate out the purely non-code changes prior to submitting the real patch

diff -r 671153757b16 -r 10c0009c697c chirp/drivers/ft4.py
--- a/chirp/drivers/ft4.py	Mon Mar 11 06:47:04 2019 -0700
+++ b/chirp/drivers/ft4.py	Tue Mar 12 13:41:46 2019 -0700
@@ -54,7 +54,8 @@
  u8 tx_dcs;     //see dcs table, but radio code = CHIRP code+1. 0==off
  u8 rx_dcs;     //see dcs table, but radio code = CHIRP code+1. 0==off
  u8 duplex;     //(auto,offset). (0,2,4,5)= (+,-,0, auto)
- ul16 offset;   //little-endian binary *25 kHz, +- per duplex
+ ul16 offset;   //little-endian binary * scaler, +- per duplex
+                   //scaler is 25 kHz for FT-4, 50 kHz for FT-65.
  u8 tx_width;   //0=wide, 1=narrow
  u8 step;       //STEPS (0-9)=(auto,5,6.25,10,12.5,15,20,25,50,100) kHz
  u8 sql_type;   //(0-6)==(off,r-tone,t-tone,tsql,rev tn,dcs,pager)
@@ -606,7 +607,7 @@
 
         rp.pre_download = "".join([
             "1. Turn radio off.\n",
-            "2. Connect cable to SP jack.\n",
+            "2. Connect cable to MIC jack.\n",
             "3. Turn radio on.\n",
             "4. Press OK within 3 seconds"
             ]
@@ -1107,6 +1108,7 @@
     id_str = b'IH-420\x00\x00\x00V100\x00\x00'
     freq_offset_scale = 50000
     legal_steps = US_LEGAL_STEPS
+    # we need a deep copy here because we are adding deeper than the top level.
     class_group_descs = copy.deepcopy(YaesuSC35GenericRadio.group_descriptions)
     add_paramdesc(
         class_group_descs, "misc", ("compander", "Compander", ["OFF", "ON"]))



More information about the chirp_devel mailing list