Daniele Forsi IU5HKX
39e155efe7
Fix include config.h
...
It should be included, with its path, before any hamlib include
and before any #ifdef that uses the symbols that it defines.
2025-08-30 11:18:51 +02:00
Daniele Forsi IU5HKX
7746d59438
Implement get_agc for flrig 2.0.06+
...
Test case:
run: flrig configured for the rig in use
run: tests/rigctl -m 4 get_level AGC
expected: should print an enum agc_level_e (an integer in range 0..10)
Part of issue #1376 .
2025-08-19 09:08:28 +02:00
Nate Bargmann
a9ecd50329
Sanitize radio model names and manufacturers
...
Reference GitHub issue #1013 .
2025-08-01 07:55:41 -05:00
Nate Bargmann
79f8b1cde8
Merge HitHub PR #1811
2025-07-22 22:11:06 -05:00
Daniele Forsi IU5HKX
0267068220
Fix ambiguity between system includes and Hamlib includes
2025-07-22 23:33:57 +02:00
Daniele Forsi IU5HKX
974e619dd2
Replace #include serial.h with iofunc.h
...
According to iwyu, to avoid unecessary rebuilds and to reduce the
chances of breakages of the build if includes are rearranged, the
code that uses serial_open() and ser_close() should include
serial.h while the code that uses read_block() write_block() and
similar should include iofunc.h, code that uses all of them should
include both files.
Found with iwyu.
2025-07-22 23:33:56 +02:00
George Baltz N3GB
47dae3879d
Fix compiler errors with strict C23 standards
...
Fix missing/misplaced '#include "config.h"' statements. Fixes missing
function prototypes, unknown type definitions, etc. Allows configuration
of GCC with CFLAGS="-std=c23" instead of using default -std=gnu23.
Don't know about CLANG, MSVC, MinGW, etc, but using
gwb@stitch:~> gcc --version
gcc (SUSE Linux) 15.1.1 20250714
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Hamlib can compile in strict C23 mode, or previous standard levels.
2025-07-22 11:07:33 -04:00
Daniele Forsi IU5HKX
10180a6dc2
Fix sign of error return values
...
All RIG_E* constants should be negated when returned or compared.
Fixed with:
perl -pe 's/return RIG_E/return -RIG_E/' -i $(grep -lEr "return RIG_E" --include=*.{c,h})
perl -pe 's/= RIG_E/= -RIG_E/g' -i $(grep -lEr "= RIG_E" --include=*.{c,h})
2025-06-07 12:07:44 +02:00
George Baltz N3GB
7d28822273
Add '#include "cache.h"' to all files that reference cache structure.
...
Issue #1420
2025-06-03 12:07:27 -04:00
Daniele Forsi IU5HKX
4109d606b5
Fix typos
2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX
1e7b1a628e
Fix error return values
...
All constant error values RIG_E* should be negated when returned.
Found with:
grep -nrE RETURNFUNC.?.RIG_E.+ --include=*.{c,h} | grep -v \-
2025-05-08 23:51:47 +02:00
Arkadiusz Miśkiewicz
428e3075eb
Additional PKTUSB and PKTLSB mapping for USB-D1/LSB-D1
...
Some radios (icom 7760 for example) expose USB/LSB-Dn modes (e.g., USB-D1).
By default, USB-D1 acts as PKTUSB and LSB-D1 as PKTLSB. Adding this mapping
improves compatibility with software expecting standard PKTUSB/PKTLSB modes.
A real-life scenario: this makes WSJT-X usage much nicer, as WSJT-X requests
PKTUSB, which is then mapped to USB-D1 — the default mode for FT4/FT8 operations
on Icom radios.
2025-04-14 23:59:20 +02:00
Michael Black W9MDB
d2065fe781
Add DIGI-U and DIGI-L to possible modes from FLRig
...
https://github.com/Hamlib/Hamlib/issues/1653
2025-01-07 07:54:00 -06:00
George Baltz N3GB
8589d5c6bc
Fix unbalanced ENTERFUNC/RETURNFUNC pairs in icom.c
...
Also tweak comments/formats to eliminate false positives in code base
(except for the Catch-22 ones in tests/func_chk.c itself)
2024-12-22 16:48:56 -05:00
Michael Black W9MDB
62b0a25a3d
Fix sscanf compare in flrig.c
2024-12-22 10:35:06 -06:00
Michael Black W9MDB
58924b7bec
Add DATA_FMN mode to flrig
2024-12-04 15:43:47 -06:00
Michael Black W9MDB
671a3b8562
Fix rig_get_DBM in flrig
2024-12-04 14:47:48 -06:00
Michael Black W9MDB
46711b1db4
Fix FLRig STRENGTH reading to use rig.get_DBM instead of rig.get_smeter -- much better representation
2024-12-04 10:00:41 -06:00
George Baltz N3GB
11acef5d3b
MACROize new code.
2024-11-21 19:21:41 -05:00
Mike Black W9MDB
c22392e5cd
Update FLRig's model name with the connected rig in FLRig
2024-11-10 09:53:35 -06:00
Mike Black W9MDB
5c269964c2
astyle files in preparation for release 4.6
2024-11-06 08:07:34 -06:00
Mike Black W9MDB
d7191615ee
Fix wording error in flrig.c
2024-08-17 16:21:56 -05:00
Mike Black W9MDB
25da0396c9
Remove get_agc_labels from flrig...not working
2024-06-23 06:53:09 -05:00
Mike Black W9MDB
096f29cfd9
Show flrig agc labels but don't do anything with them yet.
...
Mapping to Hamlib AGC levels is a bit complicated so deferring this until somebody needs it.
2024-06-14 10:28:44 -05:00
George Baltz N3GB
a63e518393
More state pointer changes
...
Also fix cache pointer regressions
Mostly done via `sed -i`
2024-06-01 16:59:17 -04:00
Mike Black W9MDB
dce80d264a
Update FLRig version
2024-04-18 11:28:38 -05:00
Mike Black W9MDB
4c111da0d1
Add small delay when setting VFO in FLRig to allow GUI to catch up
2024-04-18 11:22:41 -05:00
Mike Black W9MDB
9a7dda25c8
w command now recognizes ; and 0xfd as valid endings for faster response instead of timeout
...
Stacking commands with w and W works e.g. FA;FB;
Still need to allow for hex values with simple form "xfe xfe...." instead of "\0xfe \0xfe..." -- more in-line with FLRig format
https://github.com/Hamlib/Hamlib/issues/1536
2024-04-02 16:26:27 -05:00
Mike Black W9MDB
0353fdcae0
Reduce debug in flrig
2024-03-29 22:23:36 -05:00
Mike Black W9MDB
55d5f8b64a
Really fix FLRig get_bwA return code
2024-03-26 16:59:57 -05:00
Mike Black W9MDB
0a0118b797
Fix FLrig get_bwA and get_bwB to return cached value if FLRig returns empty value
2024-03-26 16:25:20 -05:00
Mike Black W9MDB
896230beed
Fix bandwidth set for FLRig
2024-03-25 22:26:58 -05:00
Mike Black W9MDB
624e00dcb4
Fix FLRig reading of bandwith when FIXED or "k" is read back
2024-03-25 11:29:18 -05:00
Mike Black W9MDB
c3429084fb
Allow FLRig to use "k" values for bandwidth
2024-03-25 10:22:48 -05:00
Mike Black W9MDB
c74b3c10c6
Add AM and AMD modes to flrig and bandwidth
2024-03-02 16:16:46 -06:00
Mike Black W9MDB
a96a97ae3c
Return 10,000 for bandwidth for Flrig when "FIXED" is returned
2024-03-02 15:58:41 -06:00
Mike Black W9MDB
1b2f6a84f7
Add USB-D1/D2/D3 LSB-D1/D2/D3 to new modes and Flrig
...
https://github.com/Hamlib/Hamlib/issues/1502
2024-02-23 12:27:55 -06:00
George Baltz N3GB
1e552b557f
Convert rigs/dummy/
2024-02-05 11:28:31 -05:00
Mike Black W9MDB
05033171c3
Change token_t to hamlib_token_t to avoid collsions with libbsm and others
...
https://github.com/Hamlib/Hamlib/issues/1469
2024-01-21 23:11:55 -06:00
Mike Black W9MDB
bca0a6ee47
Make FLRig name simpler for rig list
2023-12-22 16:00:40 -06:00
Mike Black W9MDB
ac7c908036
Add DSTAR to flrig.c -- thanks to Philip Rose GM3ZZA
2023-12-16 17:09:11 -06:00
Mike Black W9MDB
e267c62764
astyle files
2023-12-16 11:37:58 -06:00
Mike Black W9MDB
e1b3ac2a95
Fix DLL build for rigfreqwalk
2023-12-15 08:40:08 -06:00
Mike Black W9MDB
67e57f6e4d
Fix compilation for LLVM-MINGW
2023-12-15 08:05:20 -06:00
Mike Black W9MDB
10accf17b8
Remove all bw functions if failing
2023-12-13 16:31:12 -06:00
Mike Black W9MDB
f0e97a9e0e
Allow freq=0 for PowerSDR and perhaps others
2023-12-04 16:13:52 -06:00
Mike Black W9MDB
9841e500b9
Fix ptt_share segmentation fault
...
https://github.com/Hamlib/Hamlib/issues/1433
Fix ID5100 0x25 and simplex VFO actions
https://github.com/Hamlib/Hamlib/issues/1429
2023-11-23 15:00:05 -06:00
Mike Black W9MDB
1fce7ced5b
Really fix modeMapGetHamblib in Flrig to find mode in multiple mode list
...
https://github.com/Hamlib/Hamlib/issues/1428
2023-11-14 23:44:47 -06:00
Mike Black W9MDB
512c82649e
Fix modeMapGetHamblib in Flrig to find mode in multiple mode list
...
https://github.com/Hamlib/Hamlib/issues/1428
2023-11-14 22:55:25 -06:00
Mike Black W9MDB
d868f1a545
Fix FLRig get_bwA/B for rigs that do not have it
...
https://github.com/Hamlib/Hamlib/issues/1427
2023-11-13 23:07:57 -06:00