[chirp_devel] [PATCH] [UV-5R] UV-82HP (local variable 'response' referenced before assignment)

Jim Unroe
Fri Sep 23 14:38:12 PDT 2016


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1474665746 14400
# Node ID 26ee415f548b2135cd9b03ede8093a77e75520f0
# Parent  a0c4bb0655448802bbea4107f4db767f75ad4b1f
[UV-5R] UV-82HP (local variable 'response' referenced before assignment)

Some how after my testing I reverted one of my changes. This patch
corrects that mistake.

Bug #3987

diff -r a0c4bb065544 -r 26ee415f548b chirp/drivers/uv5r.py
--- a/chirp/drivers/uv5r.py	Thu Sep 22 20:47:49 2016 -0400
+++ b/chirp/drivers/uv5r.py	Fri Sep 23 17:22:26 2016 -0400
@@ -424,7 +424,7 @@
     # image data aligned with the existing settings structures.
 
     # Ok, get the response
-    ident = ""
+    response = ""
     for i in range(1, 13):
         byte = serial.read(1)
         response += byte



More information about the chirp_devel mailing list