[chirp_devel] [PATCH] [vx8] Add instructions for clone mode

Marco Filippi IZ3GME
Wed Oct 9 02:57:30 PDT 2013


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1381312240 -7200
# Node ID 53ad405e80740e1d730ef4816339556971e1336b
# Parent  fdecd9d7b1e72bc98b7677be871fc9f41320345d
[vx8]  Add instructions for clone mode
part of feature #1163

diff --git a/chirp/vx8.py b/chirp/vx8.py
--- a/chirp/vx8.py
+++ b/chirp/vx8.py
@@ -21,6 +21,7 @@
 from chirp.settings import RadioSettingGroup, RadioSetting
 from chirp.settings import RadioSettingValueInteger, RadioSettingValueString
 from chirp.settings import RadioSettingValueList, RadioSettingValueBoolean
+from textwrap import dedent
 
 MEM_FORMAT = """
 #seekto 0x54a;
@@ -449,6 +450,23 @@
     _has_vibrate = False
     _has_af_dual = True
 
+    @classmethod
+    def get_prompts(cls):
+        rp = chirp_common.RadioPrompts()
+        rp.pre_download = _(dedent("""\
+            1. Turn radio off.
+            2. Connect cable to DATA jack.
+            3. Press and hold in the [FW] key while turning the radio on
+                 ("CLONE" will appear on the display).
+            4. <b>After clicking OK</b>, press the [BAND] key to send image."""))
+        rp.pre_upload = _(dedent("""\
+            1. Turn radio off.
+            2. Connect cable to DATA jack.
+            3. Press and hold in the [FW] key while turning the radio on
+                 ("CLONE" will appear on the display).
+            4. Press the [MODE] key ("-WAIT-" will appear on the LCD)."""))
+        return rp
+        
     def process_mmap(self):
         self._memobj = bitwise.parse(MEM_FORMAT % self._mem_params, self._mmap)
 



More information about the chirp_devel mailing list