[chirp_devel] [PATCH 3 of 5] [ft60] Add instructions for clone mode
Marco Filippi IZ3GME
Wed Oct 9 02:22:44 PDT 2013
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1381310189 -7200
# Node ID fbbdb323d3ff92346d53d7ebd95e5de5a5627b21
# Parent 89e710ef0a315ceaea585640f0277c9078a7d593
[ft60] Add instructions for clone mode
part of feature #1163
diff --git a/chirp/ft60.py b/chirp/ft60.py
--- a/chirp/ft60.py
+++ b/chirp/ft60.py
@@ -16,6 +16,7 @@
import time
from chirp import chirp_common, yaesu_clone, memmap, bitwise, directory
from chirp import errors
+from textwrap import dedent
ACK = "\x06"
@@ -71,7 +72,7 @@
_send(radio.pipe, radio.get_mmap()[offset:offset+64])
ack = radio.pipe.read(1)
if ack != ACK:
- raise Exception("Radio did not ack block %i" % i)
+ raise Exception(_("Radio did not ack block %i") % i)
if radio.status_fn:
status = chirp_common.Status()
@@ -166,6 +167,27 @@
_memsize = 28617
+ @classmethod
+ def get_prompts(cls):
+ rp = chirp_common.RadioPrompts()
+ rp.pre_download = _(dedent("""\
+ 1. Turn radio off.
+ 2. Connect cable to MIC/SP jack.
+ 3. Press and hold in the [MONI] switch while turning the
+ radio on.
+ 4. Rotate the DIAL job to select "F8 CLONE".
+ 5. Press the [F/W] key momentarily.
+ 6. <b>After clicking OK</b>, press the [PTT] switch to send image."""))
+ rp.pre_upload = _(dedent("""\
+ 1. Turn radio off.
+ 2. Connect cable to MIC/SP jack.
+ 3. Press and hold in the [MONI] switch while turning the
+ radio on.
+ 4. Rotate the DIAL job to select "F8 CLONE".
+ 5. Press the [F/W] key momentarily.
+ 6. Press the [MONI] switch ("--RX--" will appear on the LCD)."""))
+ return rp
+
def get_features(self):
rf = chirp_common.RadioFeatures()
rf.memory_bounds = (1, 999)
More information about the chirp_devel
mailing list