Wykres commitów

12241 Commity (ecece62828fa0d9a5629fb0e5b0025c20e1f5b18)

Autor SHA1 Wiadomość Data
Daniele Forsi IU5HKX ecece62828 Refactor to remove code duplication of openPort()
The code wasn't indented in simic7300.c and simic7700.c but it was
identical.
2025-08-03 09:35:02 +02:00
Daniele Forsi IU5HKX 16a69722e2 Use the resp buffer for all responses
Insetad of the command buffer.
2025-08-02 16:20:38 +02:00
Daniele Forsi IU5HKX b5d136ff08 Print responses 2025-08-02 16:01:48 +02:00
Daniele Forsi IU5HKX f3e2ea9e3d Avoid printing the received command twice
It is printed at the beginning of the while loop.
2025-08-02 15:53:04 +02:00
Daniele Forsi IU5HKX 3009ec86b7 Add a .gitignore for simulators 2025-08-02 15:16:51 +02:00
Daniele Forsi IU5HKX 17b301a371 Add missing includes
Automatically added by IWYU.
2025-08-02 13:14:35 +02:00
Daniele Forsi IU5HKX e8467032ad Remove unused includes
Found with IWYU.
2025-08-02 13:13:10 +02:00
Nate Bargmann 989623ec51
Merge GitHub PR #1824 2025-08-01 18:31:38 -05:00
Nate Bargmann b4eb1bdb12
Quell warning from clang
This warning was seen on MacOS and on Debian 12 and 13 using clang:

CC       kenwood.lo
kenwood.c:2293:9: warning: absolute value function 'abs' given an argument of type 'shortfreq_t' (aka 'long') but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
 2293 |     if (abs(rit) > 9999) { RETURNFUNC(-RIG_EINVAL); }
      |         ^
kenwood.c:2293:9: note: use function 'labs' instead
 2293 |     if (abs(rit) > 9999) { RETURNFUNC(-RIG_EINVAL); }
      |         ^~~
      |         labs
1 warning generated.

Closes issue #1806 on GitHub
2025-08-01 18:25:16 -05:00
Nate Bargmann a9ecd50329
Sanitize radio model names and manufacturers
Reference GitHub issue #1013.
2025-08-01 07:55:41 -05:00
Daniele Forsi IU5HKX 0c57ccad26 Add missing include file
Otherwise it isn't added to the distribution archive created by
"make distcheck".
2025-07-30 23:29:12 +02:00
Daniele Forsi IU5HKX 094b5e741a Remove unused variables 2025-07-30 23:29:12 +02:00
Daniele Forsi IU5HKX 200b2aaecc Remove unneeded typedef
It's only used by Yeasu simulators.
2025-07-30 23:29:12 +02:00
Daniele Forsi IU5HKX 6af3b3a94e Remove DECLARE_INITRIG_BACKEND()
This code is uneeded.
2025-07-30 23:29:12 +02:00
Daniele Forsi IU5HKX 5f78c54bae Remove DECLARE_INITRIG_BACKEND()
Breaks rig_probe() for rigs probed later (eg. Kenwood).
2025-07-30 23:29:12 +02:00
George Baltz N3GB b4f0a3b4b3 Update NEWS 2025-07-29 14:04:16 -04:00
George Baltz N3GB 1c36377480 Still more cppcheck tweaks 2025-07-29 13:10:28 -04:00
George Baltz N3GB 72bc62366d A few more cppcheck messages silenced 2025-07-28 19:31:20 -04:00
Daniele Forsi IU5HKX f8c3d6b614 Fix error messages 2025-07-28 22:04:18 +02:00
George Baltz N3GB e172d34381 Deprecate amp_get_conf(), too 2025-07-28 11:32:34 -04:00
George Baltz N3GB faad247f06 Deprecate rot_get_conf() 2025-07-28 10:43:10 -04:00
Nate Bargmann 48804dc4da
Merge GitHub PR #1819 2025-07-27 18:45:52 -05:00
Nate Bargmann 66acf19efe
Merge GitHub PR #1818 2025-07-27 18:01:00 -05:00
Nate Bargmann 53b7cef537
Merge GitHub PR #1817 2025-07-27 17:10:45 -05:00
Daniele Forsi IU5HKX c0ec84ca4b Add default values for make (dist)check 2025-07-27 20:13:07 +02:00
Daniele Forsi IU5HKX ed138699c3 Add missing files for make distcheck 2025-07-27 20:12:58 +02:00
dforsi 96d5abab47
Merge branch 'master' into fix/pytest 2025-07-27 18:22:26 +02:00
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