From 93f6515490bbaa3e8e7672a0851e3a0992daf4f8 Mon Sep 17 00:00:00 2001 From: Maxime Guillaud Date: Thu, 14 Nov 2024 21:59:39 +0100 Subject: [PATCH] add Baofeng UV-21Pro v2 --- chirp/drivers/baofeng_uv17Pro.py | 16 ++++++++++++++++ tests/images/Baofeng_UV-21Pro_v2.img | Bin 0 -> 33849 bytes 2 files changed, 16 insertions(+) create mode 100644 tests/images/Baofeng_UV-21Pro_v2.img diff --git a/chirp/drivers/baofeng_uv17Pro.py b/chirp/drivers/baofeng_uv17Pro.py index 78faa6d5..a688c5b6 100644 --- a/chirp/drivers/baofeng_uv17Pro.py +++ b/chirp/drivers/baofeng_uv17Pro.py @@ -1575,3 +1575,19 @@ class UV5RH(UV17Pro): LIST_PW_SAVEMODE = ["Off", "1:1", "1:2", "1:4"] MODES = UV17Pro.MODES + ['AM'] _has_workmode_support = True + + +@directory.register +class UV21ProV2(UV17Pro): + VENDOR = "Baofeng" + MODEL = "UV-21Pro-v2" + + VALID_BANDS = [UV17Pro._airband, UV17Pro._vhf_range, UV17Pro._vhf2_range, + UV17Pro._uhf_range, UV17Pro._uhf2_range] + POWER_LEVELS = [chirp_common.PowerLevel("High", watts=10.00), + chirp_common.PowerLevel("Low", watts=2.00)] + SCODE_LIST = ["%s" % x for x in range(1, 16)] + SQUELCH_LIST = ["Off"] + list("123456789") + LIST_PW_SAVEMODE = ["Off", "1:1", "1:2", "1:4"] + MODES = UV17Pro.MODES + ['AM'] + _has_workmode_support = True diff --git a/tests/images/Baofeng_UV-21Pro_v2.img b/tests/images/Baofeng_UV-21Pro_v2.img new file mode 100644 index 0000000000000000000000000000000000000000..57454373240eaa88956052ca0b2c4e003a494f87 GIT binary patch literal 33849 zcmeI*&rTCj6vy#%rybh*FEPdlJFIEk0!0mB1C}Ya2v+DH?9Nu8C2b*yg}OK3&V&s< z2v5PAu<#Y|v;{)1w+r3+y~znZ_cwFr@M-rWiKl^Roq1=Th=eb#C5b7`r-GBvNys?! zl;)|R;1_&7z;Sa2z>~gq?X?^LDTo+l%?m{7Cboz!OhKocXEd zr@^R`Ti5lHB(mzHwd|$hVBA$qUb$Lkd`eCBF(_1%(=m$MTjOiZcSbEyPt`X1bLsmcd zihG^P%15j|V)aq0j}7*w_ix|q8EbN5toe*JpRwjM)_lgA&sg&rYd&Mm=MBzxGw6^H zOXkBsvhVQ=aXUyB-elXEdN(UKD$Uh)wcg88A4)ULa_L2@mo+Eb z<;CLX%=XS!rco@t%@5pHt2P_8O6$EoXTILQer4z5diG#FS#DHYE4!7c>0VZ87N