George Baltz N3GB
c3d21b477e
Add build directory search for includes to cppcheck.sh
...
Try to find the build location if you build out of tree.
Not a very thorough sesrch, just enough to find it on my system.
Needs local customization for the general case.
Also fix missing ", delete config statement with bad syntax.
2025-06-07 10:46:31 -04:00
George Baltz N3GB
32b57107f4
More static and const additions.
2025-06-07 10:46:31 -04:00
George Baltz N3GB
5087894d71
Check off a few more cppcheck carps.
2025-06-07 10:46:31 -04:00
Nate Bargmann
7b60cb586d
Merge GitHub PR #1751
2025-06-07 07:56:07 -05: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
Daniele Forsi IU5HKX
721b81d9be
Fix sign of return values Doxygen comments
...
All RIG_E* constants are negated when returned.
Fied with:
perl -pe 's/return RIG_E/return -RIG_E/' -i src/vent.c
perl -pe 's/retval RIG_E/retval -RIG_E/g' -i $(grep -lEr "retval RIG_E" --include=*.{c,h})
2025-06-07 10:54:34 +02:00
Daniele Forsi IU5HKX
72bde6e131
Fix sign of error return values
...
All RIG_E* constants should be negated when returned or compared.
Change the usages of RIG_IS_SOFT_ERRCODE() for consistency.
2025-06-07 10:54:34 +02:00
Daniele Forsi IU5HKX
ae9556462a
Fix debug messages shown even from disabled levels
...
Messages from ENTERFUNC and RETURNFUNC where stored in an internal buffer
even whe debug_level wasn't TRACE and were returned when calling rigerror().
2025-06-07 09:14:32 +02:00
Nate Bargmann
355d237ffe
Merge GitHub PR #1758
2025-06-06 21:18:35 -05:00
Nate Bargmann
778edf7757
Merge GitHub PR #1757
2025-06-06 21:11:36 -05:00
Nate Bargmann
98d1d4f57b
Merge GitHub PR #1756
2025-06-06 21:05:04 -05:00
Daniele Forsi IU5HKX
ea5a5ac312
Fix Doxygen tags
2025-06-07 00:07:00 +02:00
Daniele Forsi IU5HKX
4ce5763cb9
Fix exit statuses
...
Exit status 2 is for invalid command line options or arguments.
Exit status 2 is for errors returned by Hamlib.
2025-06-06 23:58:02 +02:00
Daniele Forsi IU5HKX
0123cce135
Fix typo
...
Do the same change as in commit 42f41773
2025-06-06 23:52:13 +02:00
Daniele Forsi IU5HKX
2967945e32
Fix syntax error
...
Fixes an error that happens when trying to run the example:
$ nc -w 1 localhost 4532P
nc: port number invalid: 4532P
2025-06-06 23:52:13 +02:00
markjfine
b17644d4e3
Kill warnings
...
Kills some warnings in jrc_set_func when compiling on Mac that weren't seen in Linux.
2025-06-06 15:50:55 -04:00
Nate Bargmann
04a8503eab
Update NEWS
2025-06-05 21:52:14 -05:00
Nate Bargmann
c92fee947a
Merge GitHub PR #1709
2025-06-05 21:42:20 -05:00
markjfine
735e1810df
Added NB2
...
Added RIG_FUNC_NB2 to the function list to complement RIG_FUNC_NB.
2025-06-05 18:45:54 -04:00
markjfine
472154a131
Removed FAGC and added NB2
...
Removed FAGC from the function list as erroneous for this model. Added RIG_FUNC_NB2 to the function list to complement RIG_FUNC_NB.
2025-06-05 18:42:18 -04:00
markjfine
6115a6ddf1
Fix NB and NB2 used by 535 and 545
...
JRC uses one command to switch between NB and NB2. Combined both in the get and set switch blocks to better accommodate this.
2025-06-05 18:35:27 -04:00
Nate Bargmann
edef374787
Set the correct ABI_REVISION value
2025-06-04 09:41:38 -05:00
George Baltz N3GB
b0d5d606fe
Update NEWS
2025-06-04 09:46:51 -04:00
George Baltz N3GB
1532432236
Move more rig_cache infrastructure to cache.[ch]
...
Macros from rig.h, routines from misc.c
Add some error checks and comments
2025-06-03 12:07:27 -04:00
George Baltz N3GB
3bdfdebacb
Simplify elapsed time computation
...
Do as much of the arithmetic in integers as possible.
Convert both parts to final units(msec) and add.
The casts are actually unneeded, but show when the conversions are done.
And drop an unreachable break.
2025-06-03 12:07:27 -04:00
George Baltz N3GB
29924af2f1
Minor cleanups
...
Noticed while perusing cache code.
2025-06-03 12:07:27 -04:00
George Baltz N3GB
f5eb8f19e9
Add utility routine to release all allocated buffers, including rig itself.
...
One stop shopping for all your rig data cleanup needs.
2025-06-03 12:07:27 -04:00
George Baltz N3GB
1fca93a5a2
Deprecate rig_cache definition in rig.h
...
Add new rig_cache definition in cache.h
2025-06-03 12:07:27 -04:00
George Baltz N3GB
6f8bf81514
Allocate separate storage for cache buffer
...
Add address to rig_struct, change CACHE() macro to use it.
Free it when done.
Issue #1420
2025-06-03 12:07:27 -04: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
George Baltz N3GB
4d322337c1
Update NEWS
2025-06-01 10:55:32 -04:00
George Baltz N3GB
3bc9e5261b
Still more functions made static.
2025-05-31 14:17:10 -04:00
George Baltz N3GB
6b5c5b48f9
Don't try to process short spectrum frames.
2025-05-31 14:10:05 -04:00
George Baltz N3GB
7fa0c863f2
Don't start async_data_handler until rig is fully opened.
...
Let the <model>_rig_open() finish its setup before trying to read status.
2025-05-30 12:39:29 -04:00
George Baltz N3GB
63e1bb4c00
Pass spectrum data through to callback
...
Fixes issue #1734
2025-05-30 11:55:29 -04:00
George Baltz N3GB
cccee9b791
Still more cppcheck complaints dealt with.
2025-05-29 05:41:39 -04:00
George Baltz N3GB
b74bd31b40
Quiet a few more cppcheck gripes.
...
Making these functions static also reduces the possibilities of
collisions with app names and may shorten load time.
And I can finally make meter_type1 and meter_type2 const, like I
tried to do in the beginning.
2025-05-29 05:41:39 -04:00
George Baltz N3GB
00d285576c
Fix backward frequency tests in ft857.c
...
Found by cppcheck.sh
2025-05-29 05:41:39 -04:00
George Baltz N3GB
0a6d07a1ad
Make a few more functions static
...
All rig-specific overrides should only be used in one file. Keep the
definitions local.
2025-05-29 05:41:39 -04:00
George Baltz N3GB
9f43659831
Fix gain controls in simts890.c
...
And a couple of other hiccups found by cppcheck
2025-05-29 05:41:39 -04:00
George Baltz N3GB
a4b6ef4fd7
Fix out of sequence merge for issue #1634
...
Still undetermined if fix is needed for TS-590SG
2025-05-29 05:41:39 -04:00
Daniele Forsi IU5HKX
9fdf8f201c
Fix list of dependecies of aclocal.m4
...
Adds missing ax_lib_readline.m4 and ax_lua.m4 to the list of MACROS.
Also sorts the list.
2025-05-27 09:01:44 +02:00
Nate Bargmann
717d720a36
Merge GitHub PR #1744
2025-05-26 11:09:36 -05:00
Daniele Forsi IU5HKX
43017b38f0
Fix typo
...
Add closing tag for example text.
2025-05-26 08:31:39 +02:00
Daniele Forsi IU5HKX
3034631b2f
Fix typo
2025-05-26 08:31:39 +02:00
Nate Bargmann
f459eea516
Update NEWS for 4.6.3 release
2025-05-25 20:46:16 -05:00
George Baltz N3GB
b5df48d8d9
Add locking around get/set levels
2025-05-24 20:20:10 -04:00
Mooneer Salem
0fd094f476
Fix issue where Hamlib attempts to use memory returned by setlocale() after being freed.
2025-05-22 21:18:38 -05:00
Nate Bargmann
9570d9963b
Merge GitHub PR #1742
2025-05-22 18:17:59 -05:00
Nate Bargmann
9b177cd8b3
Merge GitHub PR #1739 .
2025-05-22 17:23:35 -05:00