[chirp_devel] [PATCH 3 of 4] [yaesu_clone] Add generic instructions for clone mode

Marco Filippi IZ3GME
Wed Oct 9 05:43:17 PDT 2013


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1381319290 -7200
# Node ID acae6ba675faabe8d051181084b3bb63e899b44a
# Parent  8a5b021abf99ca5889d532863e0e3a73d85630b6
[yaesu_clone] Add generic instructions for clone mode
part of feature #1163

diff --git a/chirp/yaesu_clone.py b/chirp/yaesu_clone.py
--- a/chirp/yaesu_clone.py
+++ b/chirp/yaesu_clone.py
@@ -17,6 +17,7 @@
 
 from chirp import chirp_common, util, memmap, errors
 import time, os
+from textwrap import dedent
 
 def _safe_read(pipe, count):
     buf = ""
@@ -178,6 +179,21 @@
     VENDOR = "Yaesu"
     _model = "ABCDE"
 
+    @classmethod
+    def get_prompts(cls):
+        rp = chirp_common.RadioPrompts()
+        rp.pre_download = _(dedent("""\
+            1. Turn radio off.
+            2. Connect data cable.
+            3. Prepare radio for clone.
+            4. <b>After clicking OK</b>, press the key to send image."""))
+        rp.pre_upload = _(dedent("""\
+            1. Turn radio off.
+            2. Connect data cable.
+            3. Prepare radio for clone.
+            4. Press the key to receive the image."""))
+        return rp
+        
     def _checksums(self):
         """Return a list of checksum objects that need to be calculated"""
         return []



More information about the chirp_devel mailing list