[chirp_devel] [PATCH][ft2900] Add msg for attempt to upload to locked radio Fixes #3055
Richard Cochran
Sun Dec 13 11:23:16 PST 2015
# HG changeset patch
# User Richard Cochran <ag6qr at sonic.net>
# Date 1450033763 28800
# Sun Dec 13 11:09:23 2015 -0800
# Node ID 3e1e59a79ff9d62d96866daf8552002a2423db2d
# Parent 95684405e6c32047c1d9e61a0e152cb198cbaf27
[ft2900] Add msg for attempt to upload to locked radio Fixes #3055
A FT-2900/FT-1900 may be "locked" preventing configuration changes. An
upload will fail if this is the case. This patch adds some text to the
upload dialog box to help the user avoid attempting to upload to a
"locked" radio. It also adds some text to the error message to suggest
the user check to make sure his radio is not locked.
diff -r 95684405e6c3 -r 3e1e59a79ff9 chirp/drivers/ft2900.py
--- a/chirp/drivers/ft2900.py Mon Nov 30 10:15:59 2015 -0800
+++ b/chirp/drivers/ft2900.py Sun Dec 13 11:09:23 2015 -0800
@@ -132,7 +132,8 @@
ack = radio.pipe.read(300)
LOG.debug("Ack was (%i):\n%s" % (len(ack), util.hexprint(ack)))
if ack != ACK:
- raise Exception("Radio did not ack ID")
+ raise Exception("Radio did not ack ID. Check cable, verify radio is not locked.\n"
+ " (press & Hold red \"*L\" button to unlock radio if needed)")
block = 0
cs = INITIAL_CHECKSUM
@@ -637,7 +638,12 @@
2. Connect data cable.
3. While holding "A/N LOW" button, turn radio on.
4. Press "MW D/MR" to receive image.
- 5. Click OK to dismiss this dialog and start transfer."""))
+ 5. Make sure display says "-WAIT-" (see note below if not)
+ 6. Click OK to dismiss this dialog and start transfer.
+
+ Note: if you don't see "-WAIT-" at step 5, try cycling
+ power and pressing and holding red "*L" button to unlock
+ radio, then start back at step 1."""))
return rp
More information about the chirp_devel
mailing list