Wykres commitów

12030 Commity (db863a69212291ea6acbb93eaff54d349a9b0cc1)

Autor SHA1 Wiadomość Data
Mark J. Fine db863a6921 Added stdbool.h for c99 compilers in drake.c 2025-07-02 20:34:17 -04:00
Mark J. Fine 3ff4bc99cc Moved all r8's command debug routines over to drake.c and out of the r8-specifc backend.
Removed the r8-specific transaction routine and repointed it to the revised common one in drake.c.
2025-07-02 11:33:50 -04:00
Mark J. Fine d32d605be6 Fix crashing when attempting to receive data on 'set' actions... helps if the receive buffer is appropriately sized.
Also, added intialization to the receive buffer in the comms loop.
2025-07-02 11:13:06 -04:00
Mark J. Fine 3b8a24179e Fixed issue in comms loop where receive buffer was too small, causing buffer overflow crashes.
Also, added buffer initialization in case some receive errors are not handled properly.
Fixed potential C99 stdbool error.
2025-07-02 09:23:59 -04:00
Mark J. Fine e1562e675f Organized most of the redundant rig freq, mode, mem, and all reporting into their individual routines that decode and pool most of the 'get' settings into the private data area. 2025-07-01 23:47:41 -04:00
Mark J. Fine 03bf68c459 Removed redundant timout-specific error block. 2025-06-30 21:30:49 -04:00
Mark J. Fine f94ec6a47b Changes to smooth out the transaction process for all Drakes, and more test edits for the R8. 2025-06-30 21:17:37 -04:00
Mark J. Fine 8316886063 Adds a backend for the Drake R8 for non-intrusive testing. Module contains copies of parts of drake.c because several routines are significantly different than R8a/b. Resopnses will be different.
Test rig includes better debugging of message transfers, that replace nulls, CRs and LFs with token strings so they can be properly seen and counted as part of the sending and receiving messages.
2025-06-29 12:14:21 -04:00
Nate Bargmann 862fda58be
Merge GitHub PR #1786 2025-06-27 07:40:51 -05:00
Nate Bargmann 9c18734911
Update NEWS for recent merges 2025-06-27 07:22:21 -05:00
Mark J. Fine 5eda68367f Corrected a couple of cppcheck warnings: uninitialize variable and condition always false. 2025-06-27 08:05:03 -04:00
Nate Bargmann cb308819e7
Merge GitHub PR #1785 2025-06-27 06:53:07 -05:00
Nate Bargmann 36f582222f
Merge GitHub PR #1784 2025-06-27 06:36:16 -05:00
声纳 7fe7602a82 Delete redundant functions and structures in guohetec. c, pmr171. c, and q900. c, optimize code structure, fix data length verification logic, and ensure the security and stability of data processing. All cppcheck style warnings have been fixed 2025-06-27 11:23:30 +08:00
Daniele Forsi IU5HKX bf518c0609 Fix Rig.get_ant()
The only supported value for get_ant() in the union of "option"
is signed integer.
Do the test when the rig is open.
2025-06-26 20:29:25 +02:00
Nate Bargmann ef3e278203
Merge GitHub PR #1776 2025-06-26 13:14:29 -05:00
Mark J. Fine ef0b7e30bd Reverted CW Pitch value<->knob conversion for non-ICR75 radios. Apparently R75 is the only one using the set mode command.
Edited out all non-essential code commenting that was done during local testing.
2025-06-26 13:38:23 -04:00
Mark J. Fine 82dd540d3a Part 2 of Issue#1775: Adds optional wrappers for rigs that need to use the alternate AGC mapping originally specified in icom.c. Instructions for employment are provided within icom_alt_agc.c. 2025-06-26 13:04:58 -04:00
Nate Bargmann 31c3c97352
Merge GitHub PR #1783 2025-06-25 21:32:26 -05:00
声纳 92a0775855 Modify the buffer size of q900. c to prevent overflow 2025-06-26 10:11:27 +08:00
声纳 acd4a98cd5 Modify buffer size to prevent overflow 2025-06-26 10:08:02 +08:00
声纳 b7388e2fca Delete useless variables of pmr171 and q900 2025-06-26 09:21:05 +08:00
声纳 14a81b9ad9 Fix q900 and pmr171 compilation warnings 2025-06-26 09:07:11 +08:00
Daniele Forsi IU5HKX 6c399b55ff Assert the length of sequences instead of the list datatype
We only need to check how many values exist.
2025-06-25 22:54:18 +02:00
Daniele Forsi IU5HKX 7223fb0766 Fix Rig.get_vfo_info() 2025-06-25 19:16:33 +02:00
Daniele Forsi IU5HKX 453e68c6cd Fix Rig.get_split_vfo()
The VFO argument optional with a default of RIG_VFO_CURR.
Fixes PR ##1555.
2025-06-25 19:16:33 +02:00
George Baltz N3GB e163aa2645 Another reversion 2025-06-25 10:53:50 -04:00
George Baltz N3GB 55b0599b75 Stop the blithering 2025-06-25 10:41:55 -04:00
George Baltz N3GB 921a6a9de3 Still more cppcheck cleanups 2025-06-25 10:01:16 -04:00
声纳 b1ad6a7112 Add the rig_backend_list to guohetec 2025-06-25 18:11:30 +08:00
声纳 13335aff69 Add the DEFINE-INITRIGBACK macro to guohetec 2025-06-25 18:00:38 +08:00
George Baltz N3GB 0b75b96ef1 Fix rotctl \dump_caps output
rot_sprintf_status() was printing items multiple times.
Cause of problem noticed by cppcheck.
2025-06-25 05:19:07 -04:00
声纳 d28acc7d60 Change the rig_debug and comments of guohetec.c and guohetec.h to English 2025-06-25 17:01:21 +08:00
声纳 3d9288d099 Change rig_debug and comments to English 2025-06-25 16:41:42 +08:00
声纳 e9f5022616 fix: correct PMR171/Q900 definitions in yaesu config 2025-06-25 15:57:38 +08:00
声纳 a4904aed62 Add Guohetec directory to build system 2025-06-25 09:29:11 +08:00
声纳 96ab1b3a3a Migrate PMR171 driver from Yaesu to Guohetec directory 2025-06-25 09:24:45 +08:00
声纳 25487237e9 Added support for PMR171 and Q900 radios 2025-06-25 09:20:50 +08:00
George Baltz N3GB aa3e6cb6e9 Fix cppcheck "errors" in rigs/icom/*.c 2025-06-24 15:52:16 -04:00
George Baltz N3GB ec4590df8d Restore TS-590S/SG RIG_LEVEL_RFPOWER_METER 2025-06-24 15:52:16 -04:00
George Baltz N3GB 4653b8f96c More cppcheck "errors" in rigs/kenwood/*
Still mostly cosmetic - currently ignoring syntax cppcheck can't cope with.
2025-06-24 15:52:16 -04:00
Nate Bargmann 0ddc6bc8f4
Fix MinGW64/MSYS2 w/GCC 15.1 warning
As reported by Steve, VK3SIR on the mailing list:

On compilation, through a fully up-to-date MinGW64/MSYS2 environment, we receive the following warnings:

....
make[3]: Entering directory '/home/sir/src/hamlib/build/src'
  CC       rig.lo
../../src/src/rig.c: In function 'rig_init':
../../src/src/rig.c:624:45: warning: unknown conversion type character 'z' in format [-Wformat=]
  624 |     rig_debug(RIG_DEBUG_TRACE, "Requesting %zd bytes for rig_struct\n", needed);
      |                                             ^
../../src/src/rig.c:624:32: warning: too many arguments for format [-Wformat-extra-args]
  624 |     rig_debug(RIG_DEBUG_TRACE, "Requesting %zd bytes for rig_struct\n", needed);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/src/rig.c:657:45: warning: unknown conversion type character 'z' in format [-Wformat=]
  657 |     rig_debug(RIG_DEBUG_TRACE, "Requesting %zd bytes for rig_cache\n", needed);
      |                                             ^
../../src/src/rig.c:657:32: warning: too many arguments for format [-Wformat-extra-args]
  657 |     rig_debug(RIG_DEBUG_TRACE, "Requesting %zd bytes for rig_cache\n", needed);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC       serial.lo
....

The '%z' modifier is also found in rigs/icom/icom.c but with a 'u'
conversion specifier.  Turns out that since 'needed' in this function is
of type 'size_t' which is an unsigned integer so the 'u' is required.
2025-06-24 07:43:37 -05:00
markjfine 6dffee33df
Correct CWPitch set/get for Icom radios
Icom has two confusing ways to set/get CW Pitch. The first way is to read/write the knob setting using CI-V command 14 subcommand 9. The second way is just to set/get the actual value via mode command 10.

At some point the commands in hamlib changed from the former to the latter, but never adjusted the interpolation code of the former.

This commit fixes the set and get routines appropriately.
2025-06-23 17:46:06 -04:00
markjfine 8abe1ec8e4
Correct mapping of D_AGC values
Ref issue#1775 (part 1)
Corrected mapping of D_AGC values to currently enumerated AGC set. Will separately provide alternate mapping, if required, in backends that require it.
2025-06-23 17:07:17 -04:00
markjfine a09603fdd4
Correct and update mapping of D_AGC values
Ref issue#1775 (part 1)
Corrected mapping of D_AGC values to currently enumerated AGC set. Will separately provide alternate mapping, if required, in backends that require it.
2025-06-23 17:02:26 -04:00
markjfine dc12b01aed
Correct powerstat check
The R75 for some reason rejects the powerstat query and returns an error. Commented out  .get_powerstat to correct that. Applications should initially assume it's on, then internally track power status, since you can still turn it off.
2025-06-23 01:25:09 -04:00
Nate Bargmann 1441ce1839
Merge GitHub PR #1726 2025-06-22 07:04:07 -05:00
Daniele Forsi IU5HKX 66977a0f12 Explain unexpected results 2025-06-22 08:10:47 +02:00
Daniele Forsi IU5HKX 93c16bcdd5 Use the macros 2025-06-22 08:10:47 +02:00
Daniele Forsi IU5HKX 68633fa627 Add SWIG macros 2025-06-22 08:10:47 +02:00