[chirp_devel] [PATCH 1 of 1] [KG-UVD1P KG-UV6] Correct a bug which could allow writing over frequency ranges

Marco Filippi IZ3GME
Thu Oct 18 05:07:40 PDT 2012


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1350561765 -7200
# Node ID 042bde5392d18854d9d9bbb54e5ab3403fedeaf5
# Parent  ee065eabb29678c1591a4c792badb081d690dc8b
[KG-UVD1P KG-UV6] Correct a bug which could allow writing over frequency ranges
Introduced implementing feature #285

diff --git a/chirp/wouxun.py b/chirp/wouxun.py
--- a/chirp/wouxun.py
+++ b/chirp/wouxun.py
@@ -275,14 +275,14 @@
                 if element.get_shortname() != "freqranges" :
                     # frequency ranges are read only
                     self.set_settings(element)
-                    continue
-            try:
-                setattr(self._memobj.settings,
-                        element.get_name(),
-                        element.value)
-            except Exception, e:
-                print element.get_name()
-                raise
+            else:
+                try:
+                    setattr(self._memobj.settings,
+                            element.get_name(),
+                            element.value)
+                except Exception, e:
+                    print element.get_name()
+                    raise
 
 
 



More information about the chirp_devel mailing list