[chirp_devel] [PATCH 3 of 4] [ft60] Add messages to help users remember clone procedure
Marco Filippi IZ3GME
Tue Oct 8 07:16:24 PDT 2013
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1381241046 -7200
# Node ID 8c40aba830d23eec3f53ef93af4a2bac95075f44
# Parent 8b5e2c9cda5cffee7d67285de302bb19e42d7804
[ft60] Add messages to help users remember clone procedure
part of feature #1163
diff --git a/chirp/ft60.py b/chirp/ft60.py
--- a/chirp/ft60.py
+++ b/chirp/ft60.py
@@ -27,6 +27,9 @@
def _download(radio):
data = ""
+ status = chirp_common.Status()
+ status.msg = radio._START_CLONE_TX_MSG
+ radio.status_fn(status)
for i in range(0, 10):
chunk = radio.pipe.read(8)
if len(chunk) == 8:
@@ -71,7 +74,11 @@
_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)
+ if i == 0:
+ raise Exception(_("Radio did not ack first block\n")
+ + radio._START_CLONE_RX_MSG)
+ else :
+ raise Exception(_("Radio did not ack block %i") % i)
if radio.status_fn:
status = chirp_common.Status()
@@ -166,6 +173,20 @@
_memsize = 28617
+ _START_CLONE_TX_MSG = _("Waiting for FT60 to start clone process\n"
+ "If you didn't already please:\n"
+ "- switch on the radio while pressing MONI "
+ "button\n"
+ "- Rotate the DIAL job to select \"F8 CLONE\"\n"
+ "- press the [F/W] key\n"
+ "- start send pressing PTT switch")
+ _START_CLONE_RX_MSG = _("This is often because, before to press the OK "
+ "button, you forget to:\n"
+ "- switch on the radio while pressing MONI "
+ "button\n"
+ "- Rotate the DIAL job to select \"F8 CLONE\"\n"
+ "- press the [F/W] key\n"
+ "- start receive pressing MONI button")
def get_features(self):
rf = chirp_common.RadioFeatures()
rf.memory_bounds = (1, 999)
More information about the chirp_devel
mailing list