[chirp_devel] [PATCH] [uv-b5] Add instructions for clone mode
Marco Filippi IZ3GME
Thu Oct 17 07:28:02 PDT 2013
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1382020000 -7200
# Node ID 7cdd91f28568ab1723e83ab5eacd4e37badabdb7
# Parent b989118832cb7d4a7586f026f9f205313234ea69
[uv-b5] Add instructions for clone mode
part of feature #1163
diff --git a/chirp/uvb5.py b/chirp/uvb5.py
--- a/chirp/uvb5.py
+++ b/chirp/uvb5.py
@@ -19,6 +19,7 @@
RadioSettingValueBoolean, RadioSettingValueList, \
RadioSettingValueInteger, RadioSettingValueString, \
RadioSettingValueFloat
+from textwrap import dedent
mem_format = """
struct memory {
@@ -231,6 +232,29 @@
_memsize = 0x1000
+ @classmethod
+ def get_prompts(cls):
+ rp = chirp_common.RadioPrompts()
+ 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. Make sure CTCSS in current channel is turned off or move
+ to other channel with CTCSS turned off.
+ 6. Make sure there is no receiving signal on current channel.
+ 7. 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. Make sure CTCSS in current channel is turned off or move
+ to other channel with CTCSS turned off.
+ 6. Make sure there is no receiving signal on current channel.
+ 7. Click OK to upload image to device."""))
+ return rp
+
def get_features(self):
rf = chirp_common.RadioFeatures()
rf.has_settings = True
More information about the chirp_devel
mailing list