Commit graph

80 commits

Author SHA1 Message Date
David Christle
7e53a7da31
fix(expert): validate status antenna fields
Validate input and transmit-antenna digits against each model's declared capabilities before constructing antenna masks. Return a protocol error for malformed status fields.
2026-07-27 23:33:13 -05:00
David Christle
b9b972378f
fix(backends): validate bounded parser fields
Stop Icom tuning-step lookup at each table sentinel and bound Gemini status fields without letting truncated scans cancel valid matches. Parse GS100 newline-delimited response lines until its exact non-terminated prompt while enforcing response and line-count limits.
2026-07-27 23:33:00 -05:00
George Baltz N3GB
edfc721f04 And a few more 2026-06-23 12:13:22 -04:00
Gong BI1XJT
60fb8e5fa0 Remove old-fashioned and buggy Android.mk build system
Signed-off-by: Gong BI1XJT <bi1xjt@rad1o.cn>
2026-05-17 22:49:59 +08:00
George Baltz N3GB
1b2461aba9 Cope with new amplifier code
Replace obsolete usages (search&replace)
Add required includes
2026-02-23 15:16:31 -05:00
Mikael Nousiainen
a526eb6bbc Extend amplifier API with funcs, levels, parms, ops, status and Expert backend.
Add new amp_caps fields (funcs, levels, parms, ops, status, freq ranges, input/ant)
with corresponding frontend API functions, ampctl commands, and dumpcaps
support. Implement Expert 13K-FA/15K-FA/2K-FA amplifier backend. Extend
dummy backend with full coverage of all new API features.
2026-02-17 15:54:00 +02:00
George Baltz N3GB
23710cf2da Use return value from remove_nonprint()
Fix formatting glitch
2025-10-10 10:52:54 -04:00
George Baltz N3GB
8b840d8e84 Always return in error case
Don't fall into normal code and get a segfault.
2025-10-06 13:08:19 -04:00
George Baltz N3GB
c1e6dcf010 More cppcheck stuff in amplifiers/ and rotators/ 2025-08-04 09:59:23 -04:00
Daniele Forsi IU5HKX
8d8d0328bf Fix typos 2025-08-03 10:49:23 +02:00
Daniele Forsi IU5HKX
0267068220 Fix ambiguity between system includes and Hamlib includes 2025-07-22 23:33:57 +02:00
Daniele Forsi IU5HKX
2fab137fc5 Apply fixes suggested by iwyu
Removes unused includes and adds missing includes.
2025-07-22 23:33:57 +02:00
Daniele Forsi IU5HKX
f621a961f4 Remove unused #include <serial.h>
Found with iwyu.
2025-07-22 23:33:56 +02:00
George Baltz N3GB
f3e9a859ed Move ???PORT() macro definitions back to rig.h
Many (most?) of the uses of the port structures in Hamlib are to pass through
  to the basic I/O routines (rig_flush(), write_block(), read_string()),
  without referencing any of the structure data.  Don't bother including
  port.h if it won't be used.

The ???PORT macros are independent of actual hamlib_port_t data use.
2025-07-10 09:54:03 -04:00
George Baltz N3GB
e90cc5fb0e Add includes to amplifiers/*/*.c 2025-07-10 09:54:03 -04:00
George Baltz N3GB
cccee9b791 Still more cppcheck complaints dealt with. 2025-05-29 05:41:39 -04:00
Michael Black W9MDB
e56f818761 Fix overrunning write in gemeni.c 2024-12-22 11:39:51 -06:00
Mike Black W9MDB
5c269964c2 astyle files in preparation for release 4.6 2024-11-06 08:07:34 -06:00
George Baltz N3GB
105a411c74 Use pointers for amp->state references 2024-07-14 01:17:28 -04:00
Mike Black W9MDB
645cab50dd Clean up unusable sections of SPE expert.c 2024-07-09 10:48:53 -05:00
George Baltz N3GB
878117ab1f Convert all port references in amplifiers/ to pointers. 2024-02-19 13:06:53 -05:00
Mike Black W9MDB
e1f2342982 Promote all BETA to STABLE
Promot all ALPHA to BETA
2024-02-14 07:11:20 -06:00
Mike Black W9MDB
e267c62764 astyle files 2023-12-16 11:37:58 -06:00
Mike Black W9MDB
d5f7660781 Fix some more cppcheck items
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-06 15:14:10 -05:00
Mike Black W9MDB
3b5f7a6dcf Add and fix some cppcheck suppress items
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-03 17:11:09 -05:00
Mike Black W9MDB
d49543f00c Fix cppcheck warning in gemini.c
https://github.com/Hamlib/Hamlib/issues/604
2023-09-30 16:28:05 -05:00
Mike Black W9MDB
494252fe1c Fix cppcheck style error 2023-08-02 22:18:32 -05:00
Mike Black W9MDB
17382c03c6 Fix cppcheck warnings 2023-08-02 16:54:02 -05:00
Mike Black W9MDB
6aa13e45c7 Fix cppcheck warnings 2023-08-02 16:49:06 -05:00
Mike Black W9MDB
4f0d78f1d9 Fix cppcheck warnings 2023-05-08 23:56:28 -05:00
Mike Black W9MDB
7101c699c8 Fix cppcheck warnings 2023-05-08 17:35:44 -05:00
Mike Black W9MDB
46d31277c1 Fix responsebuf in kpa.c 2023-05-08 17:31:11 -05:00
Mike Black W9MDB
dad55ef148 astyle files getting ready for WSJT-x-2.7.0rc1 2023-05-08 07:37:13 -05:00
Mike Black W9MDB
5134fc5fda Progress on Expert amplifier 2023-04-30 17:12:57 -05:00
Mike Black W9MDB
38d6858698 Progress on Expert ampctl 2023-03-28 17:23:54 -05:00
Mike Black W9MDB
1ec7dc07ec Fix expert_amp_caps 2023-03-28 17:14:59 -05:00
Mike Black W9MDB
7236942d89 Adding Expert Linear amplifier 2023-03-28 17:08:40 -05:00
Mike Black W9MDB
c331899d94 Fix expert in rotators/Android.mk 2023-03-28 15:58:08 -05:00
Mike Black W9MDB
bbda209fc0 Add park to rotorez
https://github.com/Hamlib/Hamlib/issues/1257
2023-03-28 11:53:00 -05:00
Mike Black W9MDB
56907442ab Fix kpa.h 2023-03-20 23:33:16 -05:00
Mike Black W9MDB
5e00bed9cb Fix Gemini DX1200 gemini_set_level function 2023-03-18 22:18:50 -05:00
Daniele Forsi IU5HKX
51d95bb8f7 [amplifiers] Fix includes 2023-02-16 19:08:24 +01:00
Daniele Forsi IU5HKX
1213d87448 [amplifiers] Remove unused include of config.h 2023-02-14 19:58:38 +01:00
Mike Black W9MDB
a83eb3bf42 astyle files for 4.5 release 2022-07-27 17:16:17 -05:00
Mike Black W9MDB
627ec83652 Change malloc to calloc 2022-07-27 10:26:08 -05:00
Michael Black
74b4d7beb6
Merge pull request #1091 from dforsi/fix/unused-includes
Fix/unused includes
2022-07-24 11:44:01 -05:00
Daniele Forsi IU5HKX
7a132e2703 Remove unused includes
Removes includes of stdio.h stdlib.h string.h unistd.h
2022-07-24 17:08:57 +02:00
Mike Black W9MDB
8e9dea8ca9 Fix compile warning in gemini.c 2022-07-22 22:38:04 -05:00
Mike Black W9MDB
363219e60a Add Gemini DX-1200 HF-1K amplifier 2022-07-10 17:05:44 -05:00
Mike Black W9MDB
7b49921468 Update levels in kpa1500 2022-07-10 17:03:56 -05:00