[chirp_devel] [PATCH] [FT2900] Add msg for attempt to upload to locked radio. Fixes #3055
Richard Cochran
Mon Feb 22 09:55:09 PST 2016
# HG changeset patch
# User Richard Cochran <ag6qr at sonic.net>
# Date 1456163532 28800
# Mon Feb 22 09:52:12 2016 -0800
# Node ID c1b004870809561b8ee6d34dba1043b750373bf6
# Parent 480369e272a2ea6b6d0ff7650c4abebcd47cdab8
[FT2900] Add msg for attempt to upload to locked radio. Fixes #3055
A user may "lock" an FT-2900/FT-1900, 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 that
appears on upload failure, to suggest the user check to make sure
his radio is not locked.
diff -r 480369e272a2 -r c1b004870809 chirp/drivers/ft2900.py
--- a/chirp/drivers/ft2900.py Tue Feb 09 22:45:58 2016 -0500
+++ b/chirp/drivers/ft2900.py Mon Feb 22 09:52:12 2016 -0800
@@ -132,7 +132,10 @@
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 +640,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