Skip to content

Commit

Permalink
th_uv88.py: Add Retevis P62 - fixes #11380
Browse files Browse the repository at this point in the history
  • Loading branch information
KC9HI authored and kk7ds committed Jun 17, 2024
1 parent 49ba81b commit 035c797
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
10 changes: 8 additions & 2 deletions chirp/drivers/th_uv88.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ def get_settings(self):
group.append(advanced)

# software only
if self.MODEL in ["RA89", "P2"]:
if self.MODEL in ["RA89", "P2", "P62"]:
options = ['Frequency', '120', '180', '240']
else:
options = ['Off', 'Frequency']
Expand Down Expand Up @@ -1081,7 +1081,7 @@ def _char_to_name(name):
"Flashlight", "Power Level", "Alarm",
"Noise Cancelaton", "Temp Monitor", "FM Radio",
"Talk Around", "Frequency Reverse"]
elif self.MODEL == "P2":
elif self.MODEL in ["P2", "P62"]:
options = ["None", "VOX", "ManDown Sw",
"Scan", "Moni", "1750 Tone",
"Power Level", "Alarm", "Noise Cancelaton",
Expand Down Expand Up @@ -1317,3 +1317,9 @@ def process_mmap(self):
"""Process the mem map into the mem object"""
mem_format = MEM_FORMAT + RA89_SETTINGS + MEM_FORMAT_PT2
self._memobj = bitwise.parse(mem_format, self._mmap)


@directory.register
class P62(P2):
VENDOR = "Retevis"
MODEL = "P62"
7 changes: 4 additions & 3 deletions tests/Python3_Driver_Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@
| <a name="Retevis_H777S"></a> Retevis_H777S | [@KC9HI](https://github.com/KC9HI) | 22-Dec-2022 | Yes | |
| <a name="Retevis_H777_Plus"></a> Retevis_H777_Plus | [@KC9HI](https://github.com/KC9HI) | 4-Dec-2022 | Yes | 0.06% |
| <a name="Retevis_P2"></a> Retevis_P2 | [@KC9HI](https://github.com/KC9HI) | 15-Jun-2024 | Yes | |
| <a name="Retevis_P62"></a> Retevis_P62 | [@KC9HI](https://github.com/KC9HI) | 15-Jun-2024 | Yes | |
| <a name="Retevis_RA685"></a> Retevis_RA685 | [@KC9HI](https://github.com/KC9HI) | 19-Nov-2022 | Yes | 0.25% |
| <a name="Retevis_RA79"></a> Retevis_RA79 | [@KC9HI](https://github.com/KC9HI) | 27-Oct-2023 | Yes | |
| <a name="Retevis_RA85"></a> Retevis_RA85 | [@KC9HI](https://github.com/KC9HI) | 19-Nov-2022 | Yes | 0.05% |
Expand Down Expand Up @@ -465,11 +466,11 @@
| <a name="Zastone_ZT-X6"></a> Zastone_ZT-X6 | [Implied by Retevis_RT22](#user-content-Retevis_RT22) | 9-Dec-2022 | Yes | 0.11% |
## Stats

**Drivers:** 462
**Drivers:** 463

**Tested:** 87% (405/57) (93% of usage stats)
**Tested:** 87% (406/57) (93% of usage stats)

**Byte clean:** 91% (423/39)
**Byte clean:** 91% (424/39)

## Meaning of this testing

Expand Down
Binary file added tests/images/Retevis_P62.img
Binary file not shown.
1 change: 1 addition & 0 deletions tests/py3_driver_testers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ Radtel_T18,@KC9HI,28-Nov-2022
Retevis_H777S,@KC9HI,22-Dec-2022
Retevis_H777_Plus,@KC9HI,4-Dec-2022
Retevis_P2,@KC9HI,15-Jun-2024
Retevis_P62,@KC9HI,15-Jun-2024
Retevis_RA685,@KC9HI,19-Nov-2022
Retevis_RA79,@KC9HI,27-Oct-2023
Retevis_RA85,@KC9HI,19-Nov-2022
Expand Down

0 comments on commit 035c797

Please sign in to comment.