Wykres commitów

12264 Commity (9dd0009f9e14100adf10cc4abe058237f4eb1a6c)

Autor SHA1 Wiadomość Data
Nate Bargmann 0d543f9483
Merge GitHub PR #1815 2025-07-27 10:54:55 -05:00
George Baltz N3GB 20eeb96787 Deprecate rig_get_conf()
Define macro to set attribute, if compiler is capable
Add macro to rig_get_conf(), Rig::getConf() declarations
Fix internal uses of rig_get_conf()
2025-07-27 11:31:18 -04:00
Nate Bargmann 119e079373
Merge GitHub PR #1790 2025-07-27 10:14:43 -05:00
Daniele Forsi IU5HKX 464076f193 Disable Tcl bindings for macOS when running make distcheck 2025-07-27 16:36:58 +02:00
George Baltz N3GB 6c372f981f Distinguish wanted from unwanted fall through instances
Compile with -Wimplicit-fallthrough; analyze the results.
Define macro to mark valid fall through constructs. Mark all of the good
 ones, and fix the bad.

Not available with all compilers - for those without the feature this commit
 does nothing.
2025-07-27 10:03:38 -04:00
George Baltz N3GB a7c8c3fa9e Fix another unwanted fall through 2025-07-27 10:03:38 -04:00
Daniele Forsi IU5HKX 4c28ba0bde Run the TCL tests using the library from build 2025-07-27 15:56:51 +02:00
Daniele Forsi IU5HKX 95bd993dd7 Do not clobber the return value of failed tests
While printing an error message is nice, it prevented "make check"
to fail; and the other two binding didn't print any.
2025-07-27 15:10:28 +02:00
Daniele Forsi IU5HKX 0df9d1767e Allow to execute some tests with a simulator or with a real amplifier
To execute the tests with the installed Hamlib use the same long arguments
as ampctl, eg:
 bindings/python/test_amp.py --model {MODEL_NUMBER} --amp-file /dev/ttyUSB0 --serial-speed {BAUD}

To execute the tests from the build tree, add the path to the libraries
that you built, eg. from the root of the build tree:
 PYTHONPATH=bindings/:bindings/.libs/ ...your command...
2025-07-27 12:57:35 +02:00
Daniele Forsi IU5HKX 6088445635 Allow to execute some tests with a simulator or with a real rotator
To execute the tests with the installed Hamlib use the same long arguments
as rotctl, eg:
 bindings/python/test_rot.py --model {MODEL_NUMBER} --rot-file /dev/ttyUSB0 --serial-speed {BAUD}

To execute the tests from the build tree, add the path to the libraries
that you built, eg. from the root of the build tree:
 PYTHONPATH=bindings/:bindings/.libs/ ...your command...
2025-07-27 12:53:23 +02:00
Daniele Forsi IU5HKX eefdda51e5 Update documentation for Python tests 2025-07-27 11:29:51 +02:00
Daniele Forsi IU5HKX ede84bfce4 Also check the "val" parameter in rig_set_conf()
Avoids a segfault in lower level functions that can more easily
happen when using the bindings.
Simmetric with rig_get_conf() via rig_get_conf2().
2025-07-27 10:47:46 +02:00
Daniele Forsi IU5HKX c3ec11e5f7 Allow to execute some tests with a simulator or with a real rig
To execute the tests with the installed Hamlib use the same long arguments
as rigctl, eg:
 bindings/python/test_rig.py --model {MODEL_NUMBER} --rig-file /dev/ttyUSB0 --serial-speed {BAUD}

To execute the tests from the build tree, add the path to the libraries
that you built, eg. from the root of the build tree:
 PYTHONPATH=bindings/:bindings/.libs/ ...your command...
2025-07-27 10:47:46 +02:00
Daniele Forsi IU5HKX eb5a838f30 Check datatype before actual value 2025-07-27 10:22:54 +02:00
Daniele Forsi IU5HKX fae77e4c02 Do the tests for set_vfo() and get_vfo() when the rig is open
Hamlib returns -RIG_EINVAL if the rig is not open.
2025-07-27 10:22:54 +02:00
Daniele Forsi IU5HKX 389155fcdf Do the tests for RIT and XIT when the rig is open
Hamlib returns -RIG_EINVAL if the rig is not open.
2025-07-27 10:22:54 +02:00
Daniele Forsi IU5HKX c4ee44b135 Swap arguments of Rig.set_dcs_sql() and make both mandatory
Makes the signature of Rig.set_dcs_sql() similar to those of
set_ctcss_sql() set_ctcss_tone() set_dcs_code()
2025-07-27 10:22:54 +02:00
Daniele Forsi IU5HKX 62e42eb4b3 Do the tests for tones when the rig is open
Hamlib returns -RIG_EINVAL if the rig is not open.
2025-07-27 10:22:54 +02:00
Daniele Forsi IU5HKX 5c06c7b942 Add tests for Rig.set_freq() and Rig.get_freq() 2025-07-27 10:22:54 +02:00
Daniele Forsi IU5HKX e54c38c522 Add comments to group tests 2025-07-27 10:22:49 +02:00
Daniele Forsi IU5HKX 9574e761ff Add meaningful arguments 2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX e83d72608b Fix the tests 2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 36576f8e40 Revert "Fix Rig.send_morse()"
This reverts commit 656cf53652.

Conflicts:
	bindings/python/test_rig.py
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 43193681b0 Revert "Fix Rig.send_dtmf()"
This reverts commit 0e3a90bb35.

Conflicts:
	bindings/python/test_rig.py
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 9626c8b90d Revert "Fix Rig.set_bank()"
This reverts commit 04d675fc55.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 5319f8b31b Revert "Fix Rig.set_freq()"
This reverts commit 070efb7b41.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX a617863a23 Revert "Fix Rig.set_mem()"
This reverts commit 663612051c.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 2199ff2bde Revert "Fix Rig.set_ctcss_sql() Rig.set_ctcss_tone() Rig.set_dcs_code()"
This reverts commit ed7e5b2344.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 3240d2f8d3 Revert "Fix various methods"
This reverts commit 623b93db3d.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 92fb82f220 Revert "Remove the macro METHOD3() which is unused now"
This reverts commit 1eeb59e50c.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX ef2d2236b5 Remove the macro METHOD3() which is unused now 2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 292da12566 Fix various methods
Fixes: set_ptt set_rit set_rptr_offs set_rptr_shift
set_split_freq set_ts set_xit vfo_op

This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 160c941e9e Fix Rig.set_ctcss_sql() Rig.set_ctcss_tone() Rig.set_dcs_code()
This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 25aae7d8e2 Fix Rig.set_mem()
This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 90c56f3e1f Fix Rig.set_freq()
This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 01bc71ab8a Fix Rig.set_bank() 2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 2b1428fd3e Add meaningful arguments 2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 8901b210ee Fix Rig.send_dtmf() 2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 13c2413bba Fix Rig.send_morse()
This is also swapping the arguments to make the vfo optional
like in other methods.
2025-07-27 10:22:04 +02:00
Daniele Forsi IU5HKX 25a2a4447f Fix Rig.get_ant() tests
The first argument is the antenna.
2025-07-27 10:22:04 +02:00
Nate Bargmann 7cceee9aba
Complete Doxygen comments for rotlist.h
Add new topic for rotator model list.
2025-07-26 18:34:31 -05:00
Nate Bargmann 4d6a3ed582
Fully document amplist.h
Create a new topic group of 'amplist' to separate the list of amplifier
models from the main Amplifier API group.
2025-07-26 18:34:30 -05:00
Nate Bargmann f67a3cfe47
Update Doxygen comments in riglist.h
Create a new topic group of 'riglist' to separate the long list of radio
models from the main Rig API group.
2025-07-26 18:34:30 -05:00
Nate Bargmann d2025477be
Add some tips on formatting with Doxygen 2025-07-26 18:34:30 -05:00
Daniele Forsi IU5HKX bc25855f48 Check split argument in dummy_get_split_mode() and fix the test 2025-07-26 19:59:36 +02:00
Daniele Forsi IU5HKX df6ddedf63 Use a define instead of a magic number 2025-07-25 23:52:02 +02:00
Daniele Forsi IU5HKX f0efc558f6 Make Dummy Rig handle also RIG_ANT_5 2025-07-25 23:47:35 +02:00
Nate Bargmann d6d50245c6
Update Doxygen comments in amplifier.h, rig.h and rotator.h 2025-07-25 06:41:14 -05:00
Nate Bargmann 15c5b4d771
Update Doxygen comments in rig_state.h
Update Doxygen comments in amp_state.h and rot_state.h for
HAMLIB_AMPSTATE and HAMLIB_ROTSTATE macros.
2025-07-25 06:17:48 -05:00
Nate Bargmann 04c00330a6
Clean upp Doxygen comments in rotator.h
When a comment block immediately preceeds the item, repeating the item
type such as \def or \typedef is not required.  They're only required
when the comment is not immediately preceeding or Doxygen doesn't get
the item correct.
2025-07-23 14:41:50 -05:00