Wykres commitów

12425 Commity (0a06af1ddef5e56593276e9c4bd069741a487f80)

Autor SHA1 Wiadomość Data
Nate Bargmann 0a06af1dde
Merge GitHub PR #1867 2025-08-24 17:22:57 -05:00
Nate Bargmann 2332826713
Merge GitHub PR #1866 2025-08-24 16:26:05 -05:00
Nate Bargmann 4340198076
Merge GitHub PR #1865 2025-08-24 15:54:07 -05:00
Nate Bargmann 17cb45f2f0
Merge GitHub PR #1862 2025-08-24 15:50:44 -05:00
Nate Bargmann d66a601c83 Fix typo in digraph 2025-08-24 21:58:50 +02:00
Daniele Forsi IU5HKX bc8dbca1f3 Remove duplicated rig_type[] lines 2025-08-24 20:18:30 +02:00
Daniele Forsi IU5HKX 06a2a25cb7 Remove misleading duplicated error message
The correct error message has been printed by getopt_long()
before returning.

Test cases:
$ rigmem -Q
rigmem: invalid option -- 'Q'
Unknown option '?'
Usage: rigmem [OPTION]... COMMAND... FILE
...

$ rigmem --foo
rigmem: unrecognized option '--foo'
Unknown option '?'
Usage: rigmem [OPTION]... COMMAND... FILE
...
2025-08-24 18:55:56 +02:00
Daniele Forsi IU5HKX a0792e4f85 Excercise the detect logic for INDI on the macOS CI
libnova is available in brew, but libindi isn't available;
./configure will detect that and not build the INDI driver.
2025-08-24 14:04:54 +02:00
Daniele Forsi IU5HKX 43d9b3d354 If --with-indi[=yes] was given, error out if prerequisites aren't met
Error out also if libnova or libindi are missing, not just if a C++11
compiler is missing.
2025-08-24 13:32:18 +02:00
Daniele Forsi IU5HKX e81e40ed70 If neither yes or no were given, build C++ binding only if prerequisites are met
Options availables are:
 ./configure # same as --with-cxx-binding=detect
 ./configure --with-cxx-binding=detect # build if prerequisites are met
 ./configure --with-cxx-binding=no # do not build
 ./configure --without-cxx-binding # do not build
 ./configure --with-cxx-binding=yes # fail if prerequisites aren't met
2025-08-24 09:43:23 +02:00
Daniele Forsi IU5HKX 91e5f1441f If neither yes or no were given, build INDI only if prerequisites are met
Options availables are:
 ./configure # same as --with-indi=detect
 ./configure --with-indi=detect # build if prerequisites are met
 ./configure --with-indi=no # do not build
 ./configure --without-indi # do not build
 ./configure --with-indi=yes # fail if prerequisites aren't met
2025-08-24 09:43:10 +02:00
Daniele Forsi IU5HKX b300747aa2 Fix comment and messages
Looks like they were copied from the texts for readline.
2025-08-24 09:33:02 +02:00
Daniele Forsi IU5HKX feef144bb8 Propagate the actual error code from grbl_request()
Instead of overridng first with -RIG_EPROTO then with -RIG_EIO.
2025-08-23 21:35:55 +02:00
Daniele Forsi IU5HKX 7fdbc99911 Return the error code from grbl_init() 2025-08-23 21:35:55 +02:00
Daniele Forsi IU5HKX 5acd75fecc Remove code that only prints debug messages and add new debug messages 2025-08-23 21:35:55 +02:00
Daniele Forsi IU5HKX 05a9034d2e Reduce severity of some debug messages from ERR to TRACE
They do not depend on an error situation.
2025-08-23 21:35:55 +02:00
Daniele Forsi IU5HKX f4d4d855b9 Show the error code and the failure count in debug messages 2025-08-23 19:46:55 +02:00
Daniele Forsi IU5HKX 6a700023ab Remove duplicated custom debug output
It has several issues:
 * these are trace messages so RIG_DEBUG_ERR is inappropriate
 * they are in a custom format which doesn't handle end of line chars
 * write_block() and read_string() print the same information when
   debug level is set to TRACE
2025-08-23 19:41:59 +02:00
Nate Bargmann ad8707c74c
Merge GitHub PR #1864 2025-08-22 15:21:04 -05:00
Daniele Forsi IU5HKX 6eb7c1d6dd Fix build failure on openSUSE Tumbleweed, Slowroll and Leap 16.0
Thanks to @dl8fcl Walter.
2025-08-22 22:02:01 +02:00
Daniele Forsi IU5HKX 8febac180a Fix typo 2025-08-22 14:38:12 +02:00
Daniele Forsi IU5HKX cb6866ff86 Fix detecting functional C++11 compilers
Allows to build Hamlib when a C++ compiler isn't available, by running:
 ./configure --without-indi --without-cxx-binding
2025-08-22 10:47:35 +02:00
aa5sh b953141b0f Bug Fixes for FTX1
Needed to adjust one of the timeouts.  Was causing issues on Windows.  Also made some changes due to IF command response size being 30, it was erroring out.  And last band mapping  was a little different on this rig for 2m, 70cm, 4m and Air Band.
2025-08-21 22:54:31 -05:00
Daniele Forsi IU5HKX e772d6481e Fix usage of AS_IF
Needs one set of square brackets for the true case and one sert for
false case.
2025-08-21 22:42:11 +02:00
Daniele Forsi IU5HKX 3b2df4ecd0 Fix detecting the availability of a C++ compiler that needs arguments
If the earlier macro AC_PROG_CXX found a compiler that needs some
arguments, the variable CXX will contain also the arguments, so the
macro AC_CHECK_PROG will try to find a file that doesn't exist
(such as "g++ -std=gnu++11" instead of just "g++").
If AC_PROG_CXX didn't find a compiler, the variable CXX is empty.
2025-08-21 22:26:18 +02:00
Daniele Forsi IU5HKX 7dc8462b20 Add missing AC_MSG_RESULT 2025-08-21 18:02:17 +02:00
Daniele Forsi IU5HKX ee7c0c3235 Make a C++11 compiler mandatory if INDI or C++ binding are requested
Otherwise make it optional.

Fixes issue #1730.
2025-08-21 17:19:35 +02:00
Daniele Forsi IU5HKX 5ba906c9aa Document building testsecurity
At some time, the commented out line check_PROGRAMS removed by this commit was
identical to the line following it, plus testsecurity appended, then they went
out of sync.
The commented out line check_PROGRAMS added by this commit appends testsecurity
in an explicit way.
2025-08-21 09:03:59 +02:00
Daniele Forsi IU5HKX 844bd8eba8 Remove unneeded dependencies
make knows how to build an executable from a single C source file
2025-08-21 09:03:59 +02:00
Daniele Forsi IU5HKX b5db8e3200 Add conditionally generated file to .gitignore and CLEANFILES
No need to add it *conditionally* to CLEANFILES because for make
it isn't an error trying to delete a file that doesn't exist.
2025-08-21 09:03:59 +02:00
Daniele Forsi IU5HKX 1194125b3d Remove unused code, apparently copied from rotctl_parse.c and modified 2025-08-21 09:03:59 +02:00
Daniele Forsi IU5HKX 0317e64dc8 Remove double call to rig_token_lookup() and rot_token_lookup()
The needed value is already in the variable.

Test case /to check that the changes don't break the code):
tests/rigctl --set-conf=rig_pathname=test,write_delay=1,timeout=2 --show-conf Q | grep --no-group-separator -A1 -E "(rig_pathname|^write_delay|^timeout):"
tests/rotctl --set-conf=rot_pathname=test,write_delay=1,timeout=2 --show-conf Q | grep --no-group-separator -A1 -E "(rot_pathname|^write_delay|^timeout):"

The output before and after this patch is:
rig_pathname: "Path name to the device file of the rig"
        Default: /dev/rig, Value: test
write_delay: "Delay in ms between each byte sent out"
        Default: 0, Value: 1
timeout: "Timeout in ms"
        Default: 0, Value: 2
Command 'Q' not found!
rot_pathname: "Path name to the device file of the rotator"
        Default: /dev/rotator, Value: test
write_delay: "Delay in ms between each byte sent out"
        Default: 0, Value: 1
timeout: "Timeout in ms"
        Default: 0, Value: 2
2025-08-20 23:07:48 +02:00
Nate Bargmann 32d064d60b
Merge GitHub PR #1860 2025-08-20 13:03:23 -05:00
Daniele Forsi IU5HKX 8847cbeafb Implement send_raw for the Perl bindings
Doesn't allow '\0' embedded in the strings to be sent or received.
Closes #1479.
2025-08-20 19:18:02 +02:00
Daniele Forsi IU5HKX cbefd0835f Do not show any debug trace messages unless requested with -vvvvv
This fixes the following commands that always printed debug messages
at the trace level:
 tests/ampctld -l >/dev/null
 tests/ampctl -h >/dev/null
 tests/rigctld -l >/dev/null
 tests/rigctltcp -l >/dev/null
 tests/rotctld -l >/dev/null
It doesn't affect other software which worked around this issue,
but changes all software to avoid regressions in future.

Test case (should print nothing in bash):
{
tests/ampctl -l -h
tests/ampctld -l -h
tests/rigctl -l -h
tests/rigctlcom -l -h
tests/rigctld -l -h
tests/rigctlsync -l -h
tests/rigctltcp -l -h
tests/rotctl -l -h
tests/rotctld -l -h
} >/dev/null
2025-08-20 17:03:32 +02:00
Daniele Forsi IU5HKX 5a001ab3aa Explicitely initialize static int verbose 2025-08-20 12:17:29 +02:00
Daniele Forsi IU5HKX ead67ec170 Replace magic number with define 2025-08-20 12:17:29 +02:00
Nate Bargmann d6165f7411
Merge GitHub PR #1859 2025-08-19 20:21:03 -05:00
Nate Bargmann db7219b731
Merge GitHub PR #1858 2025-08-19 20:05:20 -05:00
Nate Bargmann 285b44add6
Merge GitHub PR #1857 2025-08-19 19:50:45 -05:00
Nate Bargmann e2ced58a14
Merge GitHub PR #1855 2025-08-19 13:23:37 -05:00
Nate Bargmann c4aad6e0ec
Merge GitHub PR #1854 2025-08-19 13:18:47 -05:00
Nate Bargmann ab311ac97b
Merge GitHub PR #1852 2025-08-19 13:06:34 -05:00
Nate Bargmann cde3a59432
Merge GitHub PR #1851 2025-08-19 12:59:51 -05:00
Daniele Forsi IU5HKX 7a9e101b9d Add missing string form for RIG_FUNC_SLICE 2025-08-19 19:41:26 +02:00
Daniele Forsi IU5HKX a0fa2def82 Refactor to remove code duplication in rotctl*.c 2025-08-19 16:51:31 +02:00
Daniele Forsi IU5HKX 90ffcadfa5 Refactor to remove code duplication in ampctl*.c 2025-08-19 16:51:31 +02:00
Daniele Forsi IU5HKX 67038154db Refactor to remove code duplication in rigctl*.c 2025-08-19 16:51:31 +02:00
Daniele Forsi IU5HKX 7fce140970 Make help texts more similar 2025-08-19 16:51:19 +02:00
Nate Bargmann c15fecb865
Merge GitHub PR #1849 2025-08-19 08:16:22 -05:00