[chirp_devel] [PATCH] fix bad cable errors for some users on upload #1397 (2)

Jens Jensen
Tue Feb 4 05:39:43 PST 2014


# HG changeset patch
# User Jens Jensen <kd4tjx at yahoo.com>
# Date 1391521135 21600
# Node ID 15921d1f283385b04fe8e52a44398c858d4f7684
# Parent  7ed1f8fad43b085b2339ffccafb17fcf0edbd446
fix bad cable errors for some users on upload #1397 (2)

Had port open logic backwards in first attempt. Always drink coffee beforehand!

diff -r 7ed1f8fad43b -r 15921d1f2833 chirpui/mainapp.py
--- a/chirpui/mainapp.py	Tue Feb 04 06:46:57 2014 -0600
+++ b/chirpui/mainapp.py	Tue Feb 04 07:38:55 2014 -0600
@@ -656,9 +656,9 @@
         if not settings:
             return
         prompts = radio.get_prompts()
-
-        if prompts.open_port_before_upload_prompt == True:
-            print "Opening port before pre_upload prompt."
+        
+        if prompts.open_port_before_upload_prompt == False:
+            print "Opening port after pre_upload prompt."
             self._show_instructions(radio, prompts.pre_upload)
 
         if isinstance(radio, chirp_common.ExperimentalRadio) and \
@@ -678,8 +678,8 @@
             d.destroy()
             return
 
-        if prompts.open_port_before_upload_prompt == False:
-            print "Opening port after pre_upload prompt."
+        if prompts.open_port_before_upload_prompt == True:
+            print "Opening port before pre_upload prompt."
             self._show_instructions(radio, prompts.pre_upload)
 
         radio.set_pipe(ser)



More information about the chirp_devel mailing list