From dbfaad6a6c974146a2e7b5a2c0c6aebcee7529df Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Thu, 5 Sep 2024 06:37:19 -0700 Subject: [PATCH] Add MaxTalker TK-6 and MT-8S aliases Fixes #11531 Fixes #11530 --- chirp/drivers/h777.py | 13 +++++++++++++ chirp/drivers/uvk5.py | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/chirp/drivers/h777.py b/chirp/drivers/h777.py index a0e2431f6..55cbabec8 100644 --- a/chirp/drivers/h777.py +++ b/chirp/drivers/h777.py @@ -703,6 +703,19 @@ def match_model(cls, filedata, filename): return False +@directory.register +class MT8SRadio(H777Radio): + VENDOR = "MaxTalker" + MODEL = "MT-8S" + ALIASES = [] + _has_fm = False + + @classmethod + def match_model(cls, filedata, filename): + # This model is only ever matched via metadata + return False + + @directory.register class BF1901Radio(H777Radio): VENDOR = "Baofeng" diff --git a/chirp/drivers/uvk5.py b/chirp/drivers/uvk5.py index 706fce675..f212f7fab 100644 --- a/chirp/drivers/uvk5.py +++ b/chirp/drivers/uvk5.py @@ -2064,6 +2064,12 @@ class RA79Radio(UVK5Radio): MODEL = "RA79" +@directory.register +class MaxTalkerTK6(UVK5Radio): + VENDOR = "MaxTalker" + MODEL = "TK-6" + + @directory.register @directory.detected_by(UVK5Radio) class UVK5RestrictedRadio(UVK5RadioBase):