# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1425895354 -3600 # Mon Mar 09 11:02:34 2015 +0100 # Node ID 6f09ff82562904605293bdfc05f8b3e0c09c60fa # Parent 2208e480a5f255be20399d2e39d8e5910ea1ffdc [kenwood_live module] Remove unnecessary duplicated function
There was a duplicated function definition, I removed both as they are old test functions
Seen while working on #2401
diff --git a/chirp/drivers/kenwood_live.py b/chirp/drivers/kenwood_live.py --- a/chirp/drivers/kenwood_live.py +++ b/chirp/drivers/kenwood_live.py @@ -1177,42 +1177,6 @@ # seems that this is a perfect clone of TM271 with just a different model
-def do_test(): - """Dev test""" - mem = chirp_common.Memory() - mem.number = 1 - mem.freq = 144000000 - mem.duplex = "split" - mem.offset = 146000000 - - tc = THF6ARadio - - class FakeSerial: - """Faked serial line""" - buf = "" - - def write(self, buf): - """Write""" - self.buf = buf - - def read(self, count): - """Read""" - if self.buf[:2] == "ID": - return "ID %s\r" % tc.MODEL - return self.buf - - def setTimeout(self, foo): - """Set Timeout""" - pass - - def setBaudrate(self, foo): - """Set Baudrate""" - pass - - radio = tc(FakeSerial()) - radio.set_memory(mem) - - @directory.register class TM471Radio(THK2Radio): """Kenwood TM-471""" @@ -1246,43 +1210,3 @@
def _cmd_set_memory_name(self, number, name): return "MN", "%03i,%s" % (number, name) - - -def do_test(): - """Dev test""" - mem = chirp_common.Memory() - mem.number = 1 - mem.freq = 440000000 - mem.duplex = "split" - mem.offset = 442000000 - - tc = THF6ARadio - - class FakeSerial: - """Faked serial line""" - buf = "" - - def write(self, buf): - """Write""" - self.buf = buf - - def read(self, count): - """Read""" - if self.buf[:2] == "ID": - return "ID %s\r" % tc.MODEL - return self.buf - - def setTimeout(self, foo): - """Set Timeout""" - pass - - def setBaudrate(self, foo): - """Set Baudrate""" - pass - - radio = tc(FakeSerial()) - radio.set_memory(mem) - - -if __name__ == "__main__": - do_test()