Daniele Forsi IU5HKX
dc3a71da1b
Document existing option to read commands from stdin
2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX
57e5dba438
Make usage texts more similar
2025-05-14 19:41:34 +02:00
George Baltz N3GB
8150583541
Drop redundant token lookups.
2025-04-20 21:28:57 -04:00
Michael Black W9MDB
f3a932bf50
Revert "Remove setting debug in rotctl.c"
...
This reverts commit eb9bf6fb84
.
2025-02-06 22:33:54 -06:00
Michael Black W9MDB
eb9bf6fb84
Remove setting debug in rotctl.c
2025-02-06 22:27:46 -06:00
Michael Black W9MDB
a72aa0cb41
Fix buffer overflow in rotctl.c
...
https://github.com/Hamlib/Hamlib/security/code-scanning/3221
2024-12-21 13:00:06 -06:00
Mike Black W9MDB
5c269964c2
astyle files in preparation for release 4.6
2024-11-06 08:07:34 -06:00
Mike Black W9MDB
5ba43ba00e
Fix mingw compiles
...
https://github.com/Hamlib/Hamlib/issues/1597
2024-08-18 08:15:11 -05:00
George Baltz N3GB
7bf63ecbf0
More amplifier and rotator state changes
2024-07-14 01:17:28 -04:00
George Baltz N3GB
341a205bd7
Revert "Fix rotorez set_conf in both rotctl and rotctld -- since it needs to be done after rot_open"
...
This reverts commit 1557ad70f7
.
2024-06-14 16:23:36 -04:00
Mike Black W9MDB
1557ad70f7
Fix rotorez set_conf in both rotctl and rotctld -- since it needs to be done after rot_open
2024-06-07 16:07:57 -05:00
George Baltz N3GB
07f8023d17
Convert tests/* to pointers
2024-03-01 12:27:26 -05:00
Mike Black W9MDB
05033171c3
Change token_t to hamlib_token_t to avoid collsions with libbsm and others
...
https://github.com/Hamlib/Hamlib/issues/1469
2024-01-21 23:11:55 -06:00
Mike Black W9MDB
e267c62764
astyle files
2023-12-16 11:37:58 -06:00
Mike Black W9MDB
02ffc6d6dc
More set_conf/get_conf work
...
https://github.com/Hamlib/Hamlib/issues/971
2023-11-05 17:03:21 -06:00
Mike Black W9MDB
8d15c04727
Fix more cppcheck items
2023-10-14 12:01:41 -05:00
Mike Black W9MDB
534fe449a2
Fix more cppcheck items
2023-10-13 17:36:29 -05:00
Mike Black W9MDB
d72127f29a
Fix cppcheck warnings
2023-10-11 23:22:42 -05:00
Mike Black W9MDB
d28ce6b798
Bump up some 1024 buffers to 2048 to avoid overflow error
2023-07-21 11:46:58 -05:00
Mike Black W9MDB
dad55ef148
astyle files getting ready for WSJT-x-2.7.0rc1
2023-05-08 07:37:13 -05:00
Mike Black W9MDB
1e9ecb079a
Fix RT21 2nd device for elevation
...
https://github.com/Hamlib/Hamlib/issues/1257
https://github.com/Hamlib/Hamlib/issues/1258
2023-04-30 17:04:34 -05:00
Mike Black W9MDB
57b7cd1860
Fix spelling error in rotctl.c help and add offset settings to rotctl.1
2023-03-16 16:41:35 -05:00
Daniele Forsi IU5HKX
3f90086991
[tests] Fix includes
2023-02-16 19:08:24 +01:00
Mike Black W9MDB
853806b978
Fix rotctld dumpcaps to expose client rot_type instead of Other
...
https://github.com/Hamlib/Hamlib/issues/1035
2022-11-10 17:53:21 -06:00
Daniele Forsi IU5HKX
7a132e2703
Remove unused includes
...
Removes includes of stdio.h stdlib.h string.h unistd.h
2022-07-24 17:08:57 +02:00
Daniele Forsi IU5HKX
4dfe46edbb
Remove unused includes related to times and dates
...
Removes includes of time.h sys/time.h hamlibdatetime.h
2022-07-23 18:12:10 +02:00
Mike Black W9MDB
68e121d82c
Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
...
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Mike Black W9MDB
c2cb94e412
Change sprintf to snprint in tests
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-11 00:00:44 -06:00
Mike Black W9MDB
fa10d10e38
Add -R --rot_file2 option to rotctl and rotctld for 2nd rotator controller for RT21
...
https://github.com/Hamlib/Hamlib/issues/747
2021-07-23 23:28:02 -05:00
Michael Black W9MDB
6eee309b56
Improve rig_get_version and hamlib_version2 information to include commit information
...
https://github.com/Hamlib/Hamlib/issues/617
2021-03-19 22:56:18 -05:00
Michael Black W9MDB
1fcb9404b9
More changes to support macro renaming
2021-03-06 14:59:57 -06:00
Bill Somerville
f38ee5c6f1
Ensure old hamlibdatetime.h headers in the source dir are ignored
2020-10-17 02:31:17 +01:00
Michael Black W9MDB
f454cff0b7
Add check for -s switch on all utils to ensure integer is entered
2020-07-01 08:52:44 -05:00
Michael Black W9MDB
677ccac4bc
astyle files
2020-05-27 12:23:08 -05:00
Michael Black W9MDB
fb68d9f561
Add better version info to utilities
2020-05-23 10:58:25 -05:00
Michael Black
ee87d5e6df
Fix buffer overrun in all utilities
...
Change MAXCONFLEN to 1024 bytes for some future proofing
2020-04-01 14:51:50 -05:00
Michael Black
5646eb3fe4
Move hist_dir_stat
2020-01-15 15:58:04 -06:00
Michael Black
bd2149bd8a
Fix cppcheck warning in rotctl.c
2019-12-23 23:14:55 -06:00
Michael Black
fb73e5abd7
Fix some cppcheck warnings
...
Fix declarations after statements
Remove some !rig checks...we either don't need them or need them everywhere with a new error code
If you pass a NULL rig you get what you deserve :-)
2019-12-09 17:12:13 -06:00
Michael Black
a7335595de
Add az and el offset to rotctl & rotctld
2019-12-02 23:30:08 -06:00
Michael Black
6bf3b00c4f
astyle all files
2019-11-30 10:19:08 -06:00
Michael Black
2f4d62709e
Added a dummy snprintf to rig_debug to allow gcc to check format strings
...
This found tons of errors in rig_debug statements
So this patch cleans up all the files that were producing warnings or errors
This should fix a few segfaults when running with debug turned on
2019-11-30 10:04:31 -06:00
Bill Somerville
8028663ef9
Simplify unnecessary persistence of extended response state
...
The \chk_vfo command to rigctl_parse() accepts an extended response
prefix but does not act upon it, instead it is held over until the
next command. This seems unnecessary as an extended response prefix
can just as easily be added to the following command if required. By
removing this carried over state the processing of commands can be
greatly simplified as per this commit.
2019-08-29 14:27:22 +01:00
Bill Somerville
d931bd4e18
Move unnecessary global and file static variables to the stack
2019-08-29 00:39:39 +01:00
Michael Black
3dce8b01d1
Make rigctld thread safe for vfo_mode and ext_resp and change other globals to thread_local for future reference
2019-07-31 16:03:46 -05:00
Nate Bargmann
b0ebeaeda4
Quell gcc 8.2.0 defined but not used warning
...
On Debian Buster gcc ((Debian 8.2.0-8) 8.2.0) was throwing the following
warning:
CC rigctl.o
../../hamlib/tests/rigctl.c:125:18: warning: ‘have_rl’ defined but not used [-Wunused-const-variable=]
static const int have_rl = 0;
^~~~~~~
and:
CC rotctl.o
../../hamlib/tests/rotctl.c:113:18: warning: ‘have_rl’ defined but not used [-Wunused-const-variable=]
static const int have_rl = 0;
^~~~~~~
Turns out I didn't have the readline-dev package installed. As the have_rl
variable is wrapped in CPP macros, it indeed is not used when readline is not
available.
2018-10-25 18:26:25 -05:00
Michael Black W9MDB
abca0653fd
Fix compile warnings for tests
2018-04-22 18:38:16 -05:00
Michael Black W9MDB
6c369109e6
Add debug time stamps via -Z and --debug-time-stamps
2018-04-15 15:06:52 -05:00
Nate Bargmann
b692fb22ef
Formatted tests/ to final coding guidelines
2017-10-06 18:58:42 -05:00
Nate Bargmann
d489b8bcb5
Apply formatting to 'tests/' directory
...
Format per style guide.
2017-08-10 05:46:12 -05:00