# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1334817682 -7200 # Node ID f7f98e5d8d1bd29bb0fcf42b8ed959a4ccab8b43 # Parent 6a40835ebcd3f9a9c828987c4e81aa992851b570 [FT857] Protected a debugging print by CHIRP_DEBUG environment variable
diff --git a/chirp/ft857.py b/chirp/ft857.py --- a/chirp/ft857.py +++ b/chirp/ft857.py @@ -226,7 +226,8 @@
bitindex = -38 - mem.number used = ((self._memobj.pmsvisible & self._memobj.pmsfilled) >> bitindex) & 0x01 - print "mem.number %i bitindex %i pmsvisible %i pmsfilled %i used %i" % (mem.number, bitindex, self._memobj.pmsvisible, self._memobj.pmsfilled, used) + if os.getenv("CHIRP_DEBUG"): + print "mem.number %i bitindex %i pmsvisible %i pmsfilled %i used %i" % (mem.number, bitindex, self._memobj.pmsvisible, self._memobj.pmsfilled, used) if not used: mem.empty = True return mem