[chirp_devel] [PATCH] [uv-5r] Add instructions for clone mode

Jim Unroe
Tue Oct 22 02:31:32 PDT 2013


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1382432582 14400
# Node ID 8add65c09a727485bb5e366fb0cbe049201618f5
# Parent  72de80dd3e6b0d04baa7f02e5fbbd80dc63b0edc
[uv-5r] Add instructions for clone mode
part of feature #1163

diff -r 72de80dd3e6b -r 8add65c09a72 chirp/uv5r.py
--- a/chirp/uv5r.py	Mon Oct 21 09:17:19 2013 +0200
+++ b/chirp/uv5r.py	Tue Oct 22 05:03:02 2013 -0400
@@ -22,6 +22,7 @@
     RadioSettingValueInteger, RadioSettingValueList, \
     RadioSettingValueBoolean, RadioSettingValueString, \
     RadioSettingValueFloat, InvalidValueError
+from textwrap import dedent
 
 MEM_FORMAT = """
 #seekto 0x0008;
@@ -483,6 +484,20 @@
                 'your device. Thus far and to the best knowledge of the '
                 'author, no UV-5R radios have been harmed by using CHIRP. '
                 'However, proceed at your own risk!')
+        rp.pre_download = _(dedent("""\
+            1. Turn radio off.
+            2. Connect cable to mic/spkr connector.
+            3. Make sure connector is firmly connected.
+            4. Turn radio on.
+            5. Ensure that the radio is tuned to channel with no activity.
+            6. Click OK to download image from device."""))
+        rp.pre_upload = _(dedent("""\
+            1. Turn radio off.
+            2. Connect cable to mic/spkr connector.
+            3. Make sure connector is firmly connected.
+            4. Turn radio on.
+            5. Ensure that the radio is tuned to channel with no activity.
+            6. Click OK to upload image to device."""))
         return rp
 
     def get_features(self):



More information about the chirp_devel mailing list