[chirp_devel] [PATCH 4 of 4] [FT8x7] Index error on fm only band check

Marco Filippi IZ3GME
Thu Apr 19 11:20:47 PDT 2012


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1334858850 -7200
# Node ID 669937b80341f391ba793fa1d3bf3ce40a9aa9c0
# Parent  43eba22aaf1b947bb16a893b14a3b694ede1e659
[FT8x7] Index error on fm only band check
Affect whole ft8x7 family
fix Bug #137

diff -r 43eba22aaf1b -r 669937b80341 chirp/ft817.py
--- a/chirp/ft817.py	gio apr 19 19:47:52 2012 +0200
+++ b/chirp/ft817.py	gio apr 19 20:07:30 2012 +0200
@@ -490,7 +490,7 @@
     def validate_memory(self, mem):
         msgs = yaesu_clone.YaesuCloneModeRadio.validate_memory(self, mem)
 
-	lo, hi = self.VALID_BANDS[3]    # this is fm broadcasting
+	lo, hi = self.VALID_BANDS[2]    # this is fm broadcasting
 	if mem.freq >= lo and mem.freq <= hi:
             if mem.mode != "FM":
                 msgs.append(chirp_common.ValidationError("Only FM is supported in this band"))



More information about the chirp_devel mailing list