Wykres commitów

11937 Commity (591f7cf5c818fc38d2a2b9b217ca866b46826b0e)

Autor SHA1 Wiadomość Data
Daniele Forsi IU5HKX 591f7cf5c8 Fix Rig.get_ant() 2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX 65ffc5426b Remove undocumented unused method rig.chan_clear() 2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX 77c02b58bb Add tests for the Rig class 2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX c693afb040 Replace print() with assert
So changes in behavior can be detected.
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX f4dcd7d565 Add a pytest test copying all the contents of the old py3test.py
Python tests are enabled by default when building the Python bindings
if pytest is available at configuration time:
 ./configure --with-python-binding
or
 ./configure --with-python-binding --enable-pytest=check
To fail the configure step if the tests can't be enabled:
 ./configure --with-python-binding --enable-pytest
or
 ./configure --with-python-binding --enable-pytest=yes
To disable the tests:
 ./configure --with-python-binding --enable-pytest=no
To run the tests:
 make -C bindings/ check
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX 9fe3ae7e7d Remove the scripts pytest.py and py3test.py
They will be replaced by the official pytest tool.
Because of name clash it would be impossible to call the pytest
tool from the bindings directory.
2025-06-15 23:10:07 +02:00
George Baltz N3GB 07d0d91a44 Yet more cppcheck messages silenced. 2025-06-15 13:52:09 -04:00
George Baltz N3GB 49e65de203 Get rid of spurious messages from \dump_caps
rig_sprintf_func() outputs a RIG_DEBUG_ERR message for each
  function that the rig does not support.
2025-06-14 19:17:23 -04:00
Nate Bargmann bddd3ace00
Revert 17b404a6c7
These changes were unnecessary as the real bug is that the incorrect
function was being called in meade.c.

Closes GitHub issue #268.

Fix testloc.c
2025-06-14 11:42:45 -05:00
George Baltz N3GB df2bf0c634 Fix 0x26 command in simic705.c - off by 1 byte
Reduce usage of rig.h idioms - use Icom values.
Reduce/cleanup some debug output.
Add width set (1A 03)
2025-06-13 14:37:35 -04:00
George Baltz N3GB 93434b6523 Put k3.c back in the right order
And make one more func static
2025-06-09 05:26:07 -04:00
George Baltz N3GB 39a1a367e1 Get rid of a few more style infractions.
Update NEWS.
2025-06-08 03:42:33 -04:00
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