Wykres commitów

12453 Commity (31fc48c1459b37b6f78439489c2fad1d1da18d95)

Autor SHA1 Wiadomość Data
Daniele Forsi IU5HKX 31fc48c145 [dummy] Add code to get_conf static_data 2025-09-03 20:32:09 +02:00
Daniele Forsi IU5HKX b3cde37a06 Add missing code to read some configuration parameters
Adds code keeping the same order of token.h to `get_conf` the
following tokens:
 freq_skip
 offset_vfoa
 offset_vfob
 range_list_name (always returns an empty string)
 range_list_number (always returns 0)
 tuner_control_pathname
2025-09-03 20:32:09 +02:00
Daniele Forsi IU5HKX 7ab3dd718c Fix conflicting names for TOK_RANGE_SELECTED and TOK_RANGE_NAME
Change also the descriptions.

Test case
before:
tests/rigctl dump_conf | grep range
Selected range list: "The tx/rx range list in use"
Selected range list: "The tx/rx range list name"

after:
tests/rigctl dump_conf | grep range
range_list_number: "The tx/rx range list number in use"
range_list_name: "The tx/rx range list name in use"
2025-09-03 20:32:09 +02:00
Nate Bargmann f15537f2e6
Merge GitHub PR #1875 2025-09-02 15:38:54 -05:00
Daniele Forsi IU5HKX e4c43821d0 Always print error messages to stderr
Do not depend on the debug level set with --verbose
2025-09-02 21:54:18 +02:00
Nate Bargmann 3582d8dee0
Update information on Windows builds
Rename README.win32 to README.windows

Point to build scripts and mention new MinGW name and Web site.
2025-09-01 17:35:22 -05:00
Nate Bargmann a78291ff94
Update CONTRIBUTING.md to be relevant to Hamlib 2025-09-01 17:27:13 -05:00
Nate Bargmann d76d563857
Update INSTALL to align with current practice 2025-09-01 17:27:13 -05:00
Nate Bargmann 2805dc5ed6
Update READMEs
Update for current practices with tips.

Mention both GitHub and SourceForge as "forges".

Format paragraphs to a text width of 80 characters maximum.
2025-09-01 17:27:13 -05:00
Nate Bargmann d596581ece
Rename README.osx to README.macos
Conform the file name to current system marketing name.
2025-09-01 17:13:19 -05:00
Nate Bargmann 7180eb7da6
Merge GitHub PR #1879 2025-09-01 13:20:11 -05:00
Nate Bargmann 4c520571df
Merge GitHub PR #1876 2025-08-31 20:11:12 -05:00
Nate Bargmann 9123d08a6c
Merge GitHub PR #1874 2025-08-31 19:21:27 -05:00
Nate Bargmann 43b84ee56a
Merge GitHub PR #1873 2025-08-31 19:07:18 -05:00
George Baltz N3GB e09007a543 Update NEWS 2025-08-31 14:36:55 -04:00
Daniele Forsi IU5HKX 80281719f4 Fix twiddle_timeout
Fixes the definition of config parameter "twiddle_timeout" and
the description of rig_set_twiddle().
2025-08-31 10:34:44 +02:00
George Baltz N3GB 1c0de2107c Remove conditionals based on HAVE_PTHREAD 2025-08-30 11:29:45 -04:00
Daniele Forsi IU5HKX 632746cf91 Use rig_debug() instead of sending error messages to stdout 2025-08-30 16:20:32 +02:00
Daniele Forsi IU5HKX 39e155efe7 Fix include config.h
It should be included, with its path, before any hamlib include
and before any #ifdef that uses the symbols that it defines.
2025-08-30 11:18:51 +02:00
Daniele Forsi IU5HKX d227444aa6 Fix return values of amp_load_backend() and rot_load_backend()
The value -EINVAL is in the domain of errno.
2025-08-30 10:27:09 +02:00
Daniele Forsi IU5HKX 47f60d4ad7 [simulators] Remove unused includes
Found by iwyu.
2025-08-30 09:43:45 +02:00
Daniele Forsi IU5HKX 83ed5abeb4 [src] Remove unused includes
Found by iwyu.
2025-08-30 09:43:45 +02:00
Daniele Forsi IU5HKX 341a5201c6 Replace literal constant with defined symbol 2025-08-29 23:27:23 +02:00
Daniele Forsi IU5HKX 8f343197e0 Replace a printf() with rig_debug()
The bug is that we don't know why the string is invalid.

Test case:
before
tests/rigctl -r "invalid:123:port" -m 2
Unhandled host=invalid:123:port
Unhandled host=invalid:123:port

after:
tests/rigctl -r "invalid:123:port" -m 2
(no output)
tests/rigctl -r "invalid:123:port" -m 2 -v
parse_hoststr: Unhandled host=invalid:123:port
parse_hoststr: Unhandled host=invalid:123:port
2025-08-29 23:26:39 +02:00
George Baltz N3GB 002677e48c Still more pthread conditional code cleanup 2025-08-27 15:24:50 -04:00
George Baltz N3GB 9a90745ba6 More conditional pthread usage unleashed
Anybody know what sync_callback() is supposed to do? Currently
unused, very broken, and not even a header comment.
2025-08-24 19:53:44 -04:00
George Baltz N3GB df65ceee67 Start removing conditional pthreads use.
We can treat HAVE_PTHREAD and HAVE_PTHREAD_H as equivalent. But using
_PTHREAD_H is a real kludge.
2025-08-24 19:53:44 -04:00
George Baltz N3GB 9f4755cf70 Add requirement for POSIX threads (pthreads)
I wrote this one-liner, and then realized I couldn't test it - I have
no systems that do not have pthreads as an integral part - does anybody?
Since <pthread.h> has been a de facto requirement since 4.5, the point may
be moot.
(Update: quick '# mv pthread.h pthread2.h' and it fails)

And are the URLs in README.developer correct? Should they point to github?
2025-08-24 19:53:44 -04:00
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