Commit graph

2148 commits

Author SHA1 Message Date
George Baltz N3GB
53c30fcf8c
Fix rotctl \dump_caps output
rot_sprintf_status() was printing items multiple times.
Cause of problem noticed by cppcheck.

(cherry picked from commit 0b75b96ef1)
2025-06-25 21:39:26 -05:00
Daniele Forsi IU5HKX
5b4c8c2ea3
Fix Doxygen tags
(cherry picked from commit ea5a5ac312)
2025-06-06 21:23:24 -05:00
George Baltz N3GB
3abac28767
Don't start async_data_handler until rig is fully opened.
Let the <model>_rig_open() finish its setup before trying to read status.

(cherry picked from commit 7fa0c863f2)
2025-06-03 10:55:10 -05:00
George Baltz N3GB
53d2eed741
Add locking around get/set levels
(cherry picked from commit b5df48d8d9)
2025-05-26 11:16:30 -05:00
Daniele Forsi IU5HKX
da60d2d383 Replace non-portable make rule with one that is also easier to understand
Fixes:
warning: '%'-style pattern rules are a GNU make extension
2025-05-09 21:08:42 +02:00
Daniele Forsi IU5HKX
de01821c51 Fix typo 2025-05-08 23:51:47 +02:00
Daniele Forsi IU5HKX
1e7b1a628e Fix error return values
All constant error values RIG_E* should be negated when returned.
Found with:
grep -nrE RETURNFUNC.?.RIG_E.+ --include=*.{c,h} | grep -v \-
2025-05-08 23:51:47 +02:00
Daniele Forsi IU5HKX
5c05881e0e Add rules to build dependencies of libhamlib.la in other directories
This makes it possible to run "make -C src/" or "make -C tests/ rigctl"
or "make -C bindings/ check" (and so on) in a clean tree, but it doesn't
rebuild those targets if libhamlib.la is changed; for this run make from
the top directory as usual, to rebuild all SUBDIRS if needed.
2025-05-08 23:51:47 +02:00
Daniele Forsi IU5HKX
0b68dc5885 Also check the "name" parameter
Avoids a segfault if calling strtol(NULL, NULL, 0).
2025-05-08 23:11:21 +02:00
Daniele Forsi IU5HKX
dda30532b5 Add cross references hash mark for Doxygen 2025-04-30 19:36:20 +02:00
Daniele Forsi IU5HKX
c1788e2cf8 Fix names of parameters in Doxygen comments 2025-04-30 19:36:20 +02:00
Daniele Forsi IU5HKX
8feb174711 Fix typos 2025-04-30 19:34:47 +02:00
Daniele Forsi IU5HKX
24eafbd2a4 Fix Doxygen comment
The description of hamlib_version was attached to hamlib_license
and hamlib_license was missing the description.
2025-04-30 19:34:47 +02:00
George Baltz N3GB
a3e23e79cd Minor cleanups/fixes
Return status from rig_send_morse
Remove duplicate include and some dead code
Avoid future NULL dereference in error cases
2025-03-04 21:32:34 -05:00
George Baltz N3GB
5caa22b79a Add locking to rig_stop_morse
and rig_wait_morse
2025-03-04 17:20:41 -05:00
Michael Black W9MDB
7269ba6264 Merge branch 'master' of github.com:Hamlib/Hamlib 2025-03-04 14:42:32 -06:00
Michael Black W9MDB
701d6bf477 Hopefully fix CODAN NGS set_freq/get_freq 2025-03-04 14:41:31 -06:00
George Baltz N3GB
0147da5a3c Replace rs->multicast->mutex with a dedicated mutex for the API.
Use PTHREAD_MUTEX_RECURSIVE and change LOCK() to always call rig_lock().
Still needs a reliable way to determine availability.
2025-02-28 05:29:44 -05:00
George Baltz N3GB
439bd96b5d Fix the easy parts of missing thread locks
- Fix depth initialization so LOCK() at least calls rig_lock()
- Add message showing why rig_lock() does nothing
- Add missing LOCK(0)s
2025-02-27 06:22:30 -05:00
Michael Black W9MDB
98a0184680 Remote -w451 flag -- not available in all versions of gcc 2025-02-18 09:10:26 -06:00
Michael Black W9MDB
a0df573df7 Reduce good news about serial port to verbose 2025-02-04 11:45:56 -06:00
Michael Black W9MDB
5ecc1934fc Add IC910 to Icom exceptions in rig.c 2025-01-30 22:59:01 -06:00
Michael Black W9MDB
198c14818a Reduce error message level in rig_set_freq...left over from debugging 2025-01-20 16:54:16 -06:00
Michael Black W9MDB
a985b50eea Fix IC9100 rigctld startup where it was starting on VFOA and ending up on VFOB
https://github.com/Hamlib/Hamlib/issues/1656
2025-01-15 08:11:02 -06:00
Michael Black W9MDB
f2a9f091d0 Change rig_list_foreach back to using const argument -- was breaking many C++ application builds
https://github.com/Hamlib/Hamlib/issues/1647
2024-12-29 08:42:24 -06:00
Michael Black W9MDB
028e8f38cd Improve error message when windows serial port is already in use 2024-12-28 15:59:43 -06:00
George Baltz N3GB
8589d5c6bc Fix unbalanced ENTERFUNC/RETURNFUNC pairs in icom.c
Also tweak comments/formats to eliminate false positives in code base
   (except for the Catch-22 ones in tests/func_chk.c itself)
2024-12-22 16:48:56 -05:00
Michael Black W9MDB
f9185d1d24 Print error on bufferoverflow and astyle sprintflst.c 2024-12-22 15:19:38 -06:00
Michael Black W9MDB
e262fb82c2 Fix several potential overflows in sprintflst.c 2024-12-22 12:27:43 -06:00
Michael Black W9MDB
45cc53a526 Fix potential overflow in sprintflst.c 2024-12-22 11:36:45 -06:00
Michael Black W9MDB
65832ecf53 Fix compile warnings 2024-12-02 07:24:00 -06:00
Michael Black W9MDB
890ed18c43 Change morse_data_handler from LOCK to rig_lock as it needs to always use it 2024-12-02 07:20:42 -06:00
Michael Black W9MDB
711a351353 Merge branch 'master' of github.com:Hamlib/Hamlib 2024-12-01 22:41:04 -06:00
Michael Black W9MDB
5219ef2b26 Put a heavier LOCK around send_morse when clearing the buffer 2024-12-01 16:44:22 -06:00
Daniele Forsi IU5HKX
e480bc7479 Fix typos 2024-12-01 21:59:11 +01:00
Daniele Forsi IU5HKX
6036a65d2e Fix typos in comments 2024-11-24 19:24:35 +01:00
George Baltz N3GB
11acef5d3b MACROize new code. 2024-11-21 19:21:41 -05:00
Mike Black W9MDB
d444fe43c6 Fix compile warnings from gcc 14.2.0 2024-11-18 08:57:17 -06:00
Mike Black W9MDB
ec36b21f54 Remove forcine Icom rigs to always set mode.
If mode does not change then don't set it
https://github.com/Hamlib/Hamlib/issues/1580
2024-11-06 09:43:14 -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
d76da346f5 Add model_name to rig_get_rig_info 2024-11-04 16:44:22 -06:00
Mike Black W9MDB
4acfeef26a Add VOICE MORSE SPLIT to MTYPE 2024-11-04 16:43:23 -06:00
Mike Black W9MDB
882d22a50c Add help to N command in rigctl 2024-10-07 12:19:03 -05:00
Mike Black W9MDB
4afe039147 Improve conf.c debug output 2024-10-04 16:24:25 -05:00
Mike Black W9MDB
6a9cec677a Have multicast wait until rig is powered on 2024-10-04 15:43:29 -05:00
Mike Black W9MDB
0548fea7c1 Fix spelling error in misc.c 2024-10-04 15:40:56 -05:00
Mike Black W9MDB
aa9d227d64 Add device_class strings to cm108 2024-10-04 15:39:17 -05:00
Mike Black W9MDB
a6fe6b5475 More sleep.c cleanup 2024-09-28 22:50:25 -05:00
Mike Black W9MDB
548745d1f0 Clean up sleep.c 2024-09-28 22:48:11 -05:00
Mike Black W9MDB
7bde413c52 New hl_usleep routine to fix power on/on slowness and a little faster performance to boot.
Times < 3ms use busy-wait for accuracy -- can't find any wait state to minimize CPU usage for those small times.
https://github.com/Hamlib/Hamlib/issues/1601
https://github.com/Hamlib/Hamlib/issues/1604
2024-09-27 22:57:58 -05:00