Commit Graph

1357 Commits

Author SHA1 Message Date
George Baltz N3GB
b667e31dcf Fix wrong utc_offset
Only compare magnitude when checking for only hours given.  Offsets west of
  UTC could be off by a factor of 100.
2024-09-10 21:30:24 -04:00
Mike Black W9MDB
e35b87b11a Fix MacOS warning in rigctl_parse.c 2024-09-08 11:52:06 -05:00
Mike Black W9MDB
940814617b Update set_clock options again 2024-08-30 16:36:10 -05:00
Mike Black W9MDB
954fd00161 Fix set_clock information 2024-08-30 10:17:55 -05:00
Mike Black W9MDB
5ba43ba00e Fix mingw compiles
https://github.com/Hamlib/Hamlib/issues/1597
2024-08-18 08:15:11 -05:00
Mike Black W9MDB
abd6d4f388 Avoid possible segfault 2024-07-19 22:39:12 -05:00
Mike Black W9MDB
8b9c768063 Update info in riglist.h
Make check for mfg_name or model_name of Misc, Other, or Dummy for GM3ZZA's application
Just to avoid ever using these accidentally
2024-07-14 22:57:40 -05:00
George Baltz N3GB
16707507c6 Yet another batch of state pointers 2024-07-14 01:17:28 -04:00
George Baltz N3GB
7bf63ecbf0 More amplifier and rotator state changes 2024-07-14 01:17:28 -04:00
Mike Black W9MDB
5daf92d224 rigctld flush and exit for -L option 2024-07-04 12:23:57 -05:00
Mike Black W9MDB
150ac1608f Fix segfault when running rigctld --ptt-file=/dev/pts/4 --ptt-type=RTS
https://github.com/Hamlib/Hamlib/issues/1560
2024-07-03 22:24:17 -05:00
George Baltz N3GB
37321a1df8 Play catch-up with recent code. 2024-07-02 13:17:26 -04:00
George Baltz N3GB
6996a1222c Fix func_chk to do useful things
Allow multiple input files
Do analysis on function-by-function basis
Add 'return' to processing
Fix some false positives in comments
2024-06-26 10:16:12 -04:00
George Baltz N3GB
06301679d3 Balance ENTERFUNC/RETURNFUNC usage
Still some unbalanced RETURNFUNC2 usage, but doesn't affect any rig data.
2024-06-26 10:16:12 -04:00
Mike Black W9MDB
108f52806e Fix segfault when run as rigctl --ptt-file=/dev/ttyUSB2 --ptt-type=RTS
https://github.com/Hamlib/Hamlib/issues/1560
2024-06-15 22:18:59 -05: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
9eda0628f6 More state pointers - mostly sed i
Fix bad comment in tests/README
2024-06-05 16:50:40 -04:00
George Baltz N3GB
2f97b4bf82 Still more state pointer conversions. 2024-06-02 13:26:01 -04:00
George Baltz N3GB
2794d2dfe1 More state pointer changes
Done with search/replace
Less than 2300 left to do
2024-06-01 16:59:17 -04:00
Mike Black W9MDB
c16ef02196 Change rigctl and rigctld to use RTS PTT by default when --ptt-file is specified and no PTT type is given.
Can still be overridden by --set-conf=ptt_type=DTR for example.
https://github.com/Hamlib/Hamlib/issues/1560
2024-06-01 15:10:00 -05:00
Mike Black W9MDB
745e72a6cf Add
ROT_MOVE_UP_LEFT, ROT_MOVE_UP_CCW
ROT_MOVE_UP_RIGHT, ROT_MOVE_UP_CW
ROT_MOVE_DOWN_LEFT, ROT_MOVE_DOWN_CCW
ROT_MOVE_DOWN_RIGHT, ROT_MOVE_DOWN_CW
Supported by SPID rotators
2024-05-30 17:34:02 -05:00
Mike Black W9MDB
befb2ffcdf Add a bit more debug to rigctlcom.c 2024-05-30 10:03:01 -05:00
Mike Black W9MDB
97a693a87f Use rig_set_conf to set pathname in rigctl and rigctld -- allows retention of default port for example 2024-05-24 07:24:24 -05:00
Mike Black W9MDB
c73c728b5e Allow rigctl w command to quote arg1 for use by SmartSDR
e.g. w "C0|set slice 0 tx=1"
2024-05-22 11:44:54 -05:00
Mike Black W9MDB
c31497918f Add VFO Ops to rigmatrix.c and colorize things a bit 2024-04-19 16:42:10 -05:00
Mike Black W9MDB
95b0af114f Fix rigmatrix.c with new non-const rig_caps 2024-04-15 14:49:49 -05:00
Mike Black W9MDB
878243aff3 Fix FLRig 'w' and 'W' command reply display 2024-04-04 07:53:06 -05:00
Eli Schwartz
279362f403
tests: fix compilation with modern compilers
GCC 14 and clang 16, after 20+ years, finally enforce c99 language
requirements. Previously, to keep old code compiling, the use of K&R C
constructs was simply allowed despite the standard, and so users could
accidentally use those constructs without realizing it or being warned.

Now, the compiler fatally errors out when encountering the problematic
code. This can also be observed in older versions of the compiler by
using the following flags:

```
-Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types
```

In hamlib's case, the use of a function without declaring it is illegal.
It's also a very simple fix though -- the standard header which declared
the stdlib exit() function was forgotten and never included. Simply add
the missing include, and make the source code automatically compliant.

Bug: https://bugs.gentoo.org/923108
2024-04-03 17:25:31 -04:00
Mike Black W9MDB
9a7dda25c8 w command now recognizes ; and 0xfd as valid endings for faster response instead of timeout
Stacking commands with w and W works e.g. FA;FB;
Still need to allow for hex values with simple form "xfe xfe...." instead of "\0xfe \0xfe..." -- more in-line with FLRig format
https://github.com/Hamlib/Hamlib/issues/1536
2024-04-02 16:26:27 -05:00
Mike Black W9MDB
41de3425d2 Fix hamlib_version in netrigctl_open and blank agc_levels from FLRig 2024-03-31 12:22:02 -05:00
Mike Black W9MDB
59fca440a5 Fix rigctld CPU usage when client impolitely disconnects 2024-03-30 17:21:29 -05:00
Mike Black W9MDB
00dbd6a6df Fix rigctlcom.s IF command for CW Skimmer use and others that might use IF command 2024-03-29 17:09:38 -05:00
Mike Black W9MDB
8ebffd20b6 Fix get_vfo_info compatibility with Log4OM
https://github.com/Hamlib/Hamlib/issues/1531
2024-03-25 17:50:39 -05:00
Mike Black W9MDB
84d5f367f6 Fix compile warning on testrig.c 2024-03-15 22:51:19 -05:00
Mike Black W9MDB
6d257841a6 Fix some memory leaks in rigctl_parse.c 2024-03-15 16:46:14 -05:00
Mike Black W9MDB
b9e59f205e Fix compile error
https://github.com/Hamlib/Hamlib/issues/1524
2024-03-14 22:43:10 -05:00
George Baltz N3GB
c7665cb7d1 All struct rig_cache referenced converted to pointers. 2024-03-09 21:23:01 -05:00
George Baltz N3GB
728db84c0c Finish tests/* 2024-03-01 12:27:26 -05:00
George Baltz N3GB
07f8023d17 Convert tests/* to pointers 2024-03-01 12:27:26 -05:00
Mike Black W9MDB
25ee5d65d5 Fix rigctld vfo_ops
https://github.com/Hamlib/Hamlib/issues/1518
2024-02-28 17:30:41 -06:00
Mike Black W9MDB
911692c715 Remove some debug from rigctlcom.c 2024-02-20 12:05:51 -06:00
Mike Black W9MDB
8cc6ce1319 Fix rigctlcom.c for Icom rigs and those that don't have get_vfo 2024-02-19 11:46:16 -06:00
Mike Black W9MDB
91ec3afcda Fix get_vfo for Icom rigs in rigctlcom.c 2024-02-19 10:42:25 -06:00
Mike Black W9MDB
1657a0e673 Fix rigctlcom.c 2024-02-19 10:34:15 -06:00
George Baltz N3GB
b1d85e5aa1 Update dcdport usage in tests/*.c
Issue #1445
2024-02-05 11:28:30 -05:00
Mike Black W9MDB
9ed13add01 Update test2038.c
https://github.com/Hamlib/Hamlib/issues/1478
2024-01-24 16:13:54 -06:00
Mike Black W9MDB
d8a9968fac Add test2038.sh to clean 2024-01-24 12:19:38 -06:00
Mike Black W9MDB
1b5fbc1d8b Add 2038 test during build -- make check will fail is there is a 2038 problem
https://github.com/Hamlib/Hamlib/issues/1478
2024-01-24 10:45:32 -06: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