Commit Graph

5370 Commits

Author SHA1 Message Date
Krzysiek Egzmont
bda14727e2 uvk5 egzumer: custom functions keys settings bug fixed 2024-02-15 14:52:54 -08:00
Dan Smith
40f5a1a534 uv17ProGPS: Allow pasted AM frequencies
This implements the set immutable policy handler so we allow incoming
memories set to AM if they're in the right band, so that paste works.

Related to #11022
2024-02-12 20:48:51 -08:00
vdwel
db4707f4f8 uv17pro: Show AM mode when airband frequencies are used.
Fixes #11022
2024-02-12 19:44:20 -08:00
Dan Smith
1e1e01090a Ignore mode validation if immutable
If a memory has an immutable mode field, ignore it in validate_memory,
indicating that the radio is likely to choose its own value anyway.
2024-02-12 19:44:20 -08:00
Dan Smith
f7ca9f2adf csv: Attempt to persist comments across saves
This will cause us to try to insert comment lines back where they
came from when we save a file. We do that by keeping track of which
memory they came after and trying to insert them back into the stream
when we save. This will be inexact, of course, but is probably good
enough for most people.

Related to #11081
2024-02-12 19:27:16 -08:00
ngd-skier
6d7fb22da8 Added ability to open/import .csv files with # comments in them.
Fixes #11081
2024-02-12 19:27:16 -08:00
Daniele Forsi
3f63e6456d ft1d: Fix some invalid negative seeks
Fixes:
.../ft1d.py:912: DeprecationWarning: Invalid negative seek from 0x280a to 0x054a
.../ft1d.py:912: DeprecationWarning: Invalid negative seek from 0x094a to 0x047e
.../ft1d.py:912: DeprecationWarning: Invalid negative seek from 0xdf60 to 0x04ba
.../ft1d.py:912: DeprecationWarning: Invalid negative seek from 0x04ee to 0x04c0
.../ft1d.py:912: DeprecationWarning: Invalid negative seek from 0x1d813 to 0xced0
2024-02-12 16:32:07 -08:00
Daniele Forsi
c4637cdb6a Fix formatting messages for exceptions
Fixes:
chirp/drivers/ft1d.py:989:16: W0715: Exception arguments suggest string formatting might be intended (raising-format-tuple)
chirp/drivers/ft1d.py:1003:16: W0715: Exception arguments suggest string formatting might be intended (raising-format-tuple)
2024-02-12 16:32:07 -08:00
Daniele Forsi
924dcaed49 Fix SyntaxWarning when installing from a Debian package
Removes an almost identical assignment to the same variable.
The previous assignment to _SG_RE is at lines 732-733 where the second line
is missing the "r" prefix.

Fixes:
/usr/lib/python3/dist-packages/chirp/drivers/ft1d.py:832: SyntaxWarning: invalid escape sequence '\d'
  "(?P<m>[\d]*)[\s\']*(?P<s>[\d]*)")
2024-02-12 16:32:07 -08:00
Daniele Forsi
70d4b9afe0 Fix typo 2024-02-12 16:32:07 -08:00
Mel Terechenok
c8f1fa53f4 KG-UV980P Fix missing channels in older images
Fixes: #11159
Not all channels showing in older Chirp images after 20240211 update
Also fix set_raw deprecation warning for non-byte use
2024-02-12 16:29:55 -08:00
Dan Smith
e48bb5f1c6 Add bitwise fill_raw() helper
This long-overdue helper allows for filling a bitwise object with
a single byte value without having to set_raw() and calculate size.
2024-02-12 16:26:35 -08:00
Dan Smith
2c7b5b590d Fix parsing mem.extra names with dot characters
The memedit module tries to parse out extra.foo from the name, if
present. A setting with a dot character in it will cause us to crash
trying to split this out because we don't just stop at the first one.

Fixes #11157
2024-02-12 16:26:35 -08:00
Jim Unroe
14dbce015f puxing_px888k: fix bitwise errors
There also seems to be a bug introduced to CHIRP-next build 20230531 that
causes the '.' (period) at the end of the string at line 1330 to be used
to split the value at this point to create an extra value. This causes
loading of the puxing_px888.img test image to fail. This should probably
be fixed, but removing the '.' from the string resolves the issue for now.
2024-02-12 16:08:05 -08:00
vdwel
995e0bf903 Enabled workmode settings for UV-17ProGPS
Fixes #11156
2024-02-12 16:05:18 -08:00
vdwel
5d3cf792d1 Enabled workmode settings for UV-17Pro
Related to #11156
2024-02-12 16:05:18 -08:00
Dan Smith
bc4666e617 Add Baofeng UV-13Pro support
This is just a subclass of the UV-17Pro at the moment.

Fixes #9793
2024-02-12 16:01:24 -08:00
Dan Smith
b7b168486e uv17pro: Improve handling of memory corruption
Related to #9793
2024-02-12 16:01:24 -08:00
Nils Werner
2d7da1e925 Change PNG icon to square variant
This creates chirp-logo.png which contains the trimmed true-to-size
rectangular logo without a transparent square canvas. It replaces
chirp.png (which is used for application icons) with a 256x256 square
transparent version.
2024-02-12 15:58:56 -08:00
Daniele Forsi
00f430c757 Make the MessageBoxes stay on top of their parent Dialog 2024-02-12 15:55:57 -08:00
Krzysiek Egzmont
4ac08f755c uvk5 egzumer: grouping settings in UI 2024-02-12 15:54:27 -08:00
Brian Graham
20a3b43768 Leixen VV-898S/E dual bank radios added
This makes the dual-bank models "detected by" the regular ones and
also de-alias-es the whole leixen hierarchy. Also fix up some
non-byte-clean stragglers in this driver.

Co-Authored-By: Dan Smith <chirp@f.danplanet.com>
Fixes: #4069
2024-02-10 13:14:39 -08:00
Dan Smith
2e9ee73238 thd74: Fix memory map negative seek
The map for this driver just had too many items in the memory groups
array, causing a negative seek back to align the start of the
name array.
2024-02-10 09:40:23 -08:00
Daniele Forsi
411ffe60d9 bitwise: Fix logging a warning for incomplete bitfields
Fixes RecursionError exception triggered by line 937 in chirp/bitwise.py.
2024-02-10 09:38:31 -08:00
Daniele Forsi
d17c0df076 Fix typos 2024-02-10 09:07:02 -08:00
Daniele Forsi
e27306fc48 kyd_IP620: Fix bitwise errors
Fixes:
ERROR: Duplicate definition for n_a on line 12:      n_a:1,        // n-a; renaming to n_a_000c7d (previous definition line 9)
ERROR: Duplicate definition for n_a on line 38:   n_a:1,; renaming to n_a_000c8d (previous definition line 35)
2024-02-10 09:02:18 -08:00
Daniele Forsi
102b2152da uv5r: Fix bitwise errors
Fixes:
ERROR: Duplicate definition for unknown1 on line 100:      unknown1:2,; renaming to unknown1_000e52 (previous definition line 59)
ERROR: Duplicate definition for unknown2 on line 103:      unknown2:1,; renaming to unknown2_000e52 (previous definition line 62)
ERROR: Duplicate definition for unknown3 on line 106:   u8 unknown3:6,; renaming to unknown3_000e53 (previous definition line 67)
2024-02-10 09:02:18 -08:00
Mel Terechenok
fd099971f4 KG-UV980P Fix Deleted Channel issue
Fixes: #10556
Fix issue where Chirp still displays a channel when the channel was deleted via the radio keypad.

Resolve "Illegal set on attribute power - Fix this driver! " Warning
2024-02-10 08:58:06 -08:00
Mel Terechenok
2fec9b55aa KG-UV980P freq limit fix
Fixes: #11096
Update config map to send 3 blocks of 16 bytes to allow radio to accept the last sets of freq limits.
2024-02-10 08:58:06 -08:00
Cyril VELTER
30a851cee6 introlines settings adjustments to better match with the official programming software.
- introlines are 16 char long but the 16th char is not displayed correctly so force the 16th to space
- a truncated introline1 to 12 char is stored in basicsettings
2024-02-10 08:54:04 -08:00
weboo
9c2fdf406a update Japanese translation 2024-02-10 08:48:01 -08:00
MELERIX
429ad73ed2 Update Spanish Translation 2024-02-10 08:46:36 -08:00
Dan Smith
902043a937 Update US Marine stock config to current
Fixes #11135
2024-02-07 15:49:29 -08:00
Dan Smith
20fd6ecfbb Fix radioreference link
Fixes #11143
2024-02-07 15:49:29 -08:00
Dan Smith
679c143484 Give live radios the serial detection interface
Fixes #11142
2024-02-07 15:49:29 -08:00
Dan Smith
e6685dfaad uvk5: Bless 1o11 firmwares in base uvk5 driver
Fixes #11139
2024-02-07 15:49:29 -08:00
Dan Smith
e579e7e101 kg935g: Remove overly verbose debug log on load
This driver was logging two lines for every memory, which blows the
debug buffer in an IDE and makes a log hard to even read for little
benefit.
2024-02-07 15:49:29 -08:00
Dan Smith
b85efbd4ac Add commit check banning the use of eval() 2024-02-07 15:49:29 -08:00
Dan Smith
58be159b11 kg935g: Remove uses of eval() 2024-02-07 15:49:29 -08:00
Dan Smith
7fbc5a3120 kguv980: Remove uses of eval() 2024-02-07 15:49:29 -08:00
Dan Smith
d05c9a2923 uvk5: Clean up some style and consistency issues
This changes string concat to formatting, fixes some style issues
related to space around operators, etc. Most importantly it removes
the use of eval() as a shortcut to accessing elements of the memory
object, which is a very large security concern.
2024-02-07 15:49:29 -08:00
Dan Smith
c3d9614aa6 bitwise: Add get_path() symbolic traversal
This lets us build a string that represents a place in a bitwise
structure and pass it to the root of a bitwise tree to dig out a
child object.
2024-02-07 15:49:29 -08:00
Dan Smith
623fa16f33 Add some more RadioSettingValue operator overrides 2024-02-07 15:49:29 -08:00
Dan Smith
0d57b2c1df uvk5: Fix setting typo in egzumer variant 2024-02-07 15:49:29 -08:00
Dan Smith
10608596a4 uvk5: Shorten names of setting subgroups
This gets us closer to the original intention with a bunch of these,
now that nested subgroups can be collapsed.
2024-02-07 15:49:29 -08:00
Dan Smith
1d0427a5cd tk8180: Nest zone and OST settings in subgroups 2024-02-07 15:49:29 -08:00
Dan Smith
a655efef89 Allow setting subgroups to nest properly
Related to #11127
2024-02-07 15:49:29 -08:00
Dan Smith
e3ad23cf82 bitwise: Avoid duplicate definitions on one scope
This makes bitwise warn about duplicate names defined in the same
scope, which before resulted in loss of access to the eclipsed
element. Now, an error log is emitted.

There are a lot of drivers committing this crime, so I've added a
test to highlight them and marked it as XFAIL for the moment.

Fixes #11140
2024-02-07 15:28:34 -08:00
Dan Smith
10683a46df Allow log history of multiple roots 2024-02-07 15:28:34 -08:00
Dan Smith
bb9c46ff19 icv80: Fix bitwise errors
The icv80 had a duplicate entry in a bitwise scope, which caused the
driver author to incorrectly use a set_raw(15) instead of 16. Also,
a one-off on the number of channels was causing a negative seek,
and also a few unnecessary seeks.
2024-02-07 15:28:34 -08:00