# HG changeset patch # User Rick DeWitt # Date 1576363997 28800 # Sat Dec 14 14:53:17 2019 -0800 # Node ID 51c55c47f12a1a57961e1135a69627ff730ec0d0 # Parent b5589aa94c1e6a424d0f713017f68d39caa29be9 [ts590] Patch to Kenwood TS-590, ref issue #7409 regarding File > New error Adding match_model function to provide valid path for dictionary call diff -r b5589aa94c1e -r 51c55c47f12a chirp/drivers/ts590.py --- a/chirp/drivers/ts590.py Thu Dec 05 21:14:35 2019 +1100 +++ b/chirp/drivers/ts590.py Sat Dec 14 14:53:17 2019 -0800 @@ -1,6 +1,8 @@ # Copyright 2019 Rick DeWitt +# Version 1.0: CatClone- Implementing fake memory image # Version 2.0: No Live Mode library links. Implementing mem as Clone Mode # Having fun with Dictionaries +# Version 2.1: Adding match_model function to fix File>New issue #7409 # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or @@ -562,8 +564,7 @@ return -# Bug #7409 -# @directory.register +@directory.register class TS590Radio(chirp_common.CloneModeRadio): """Kenwood TS-590""" VENDOR = "Kenwood" @@ -1647,6 +1648,11 @@ LOG.debug(element.get_name()) raise + @classmethod + def match_model(cls, fdata, fyle): + """ Included to prevent 'File > New' error """ + return False + @directory.register class TS590SRadio(TS590Radio):