Mike Black W9MDB
560afb9de2
Add SM and KS commands to rigctlcom to work better with DXCommander
...
https://github.com/Hamlib/Hamlib/issues/1170
2022-12-02 10:34:29 -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
Mike Black W9MDB
668db3a0e2
Update rigctlcom information
2022-07-14 16:55:24 -05:00
Mike Black W9MDB
6f9d057162
astyle files getting ready for release
2022-05-13 16:50:13 -05:00
Mike Black W9MDB
382282ba20
Fix rigctl option -B
2022-04-25 08:18:06 -05:00
Mike Black W9MDB
b55668e2fa
Update usage and no arg for -B option
2022-04-25 08:09:51 -05:00
Mike Black W9MDB
6497048f28
Allow rigctlcom to map set_freq on VFOA to VFOB instead
...
This will allow CW Skimmer to work with some rigs (e.g. IC7300) using FM
mode on VFOA and CW mode on VFOB and split mode transmit on VFOB.
Clicking on CW Skimmer will change VFOB instead of VFOA to allow working
dxpeditions where the fox is staying on frequency
2022-04-24 14:19:20 -05:00
Mike Black W9MDB
8c34ce1a2d
astyle source code
2022-02-05 15:27:43 -06: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
7b4b7ee630
Add a depth count to debug statements to help understand calling sequences
...
First call into rig functions is level 1
Top level like rigctl, rigctld is level 0
Non-depth calls are internal debug statements -- which can be modified to also show levels but that's a whole lot of statements not really necessary
Normal calls from other clients will be level 1
2022-01-30 23:37:01 -06:00
Mike Black W9MDB
a277d7ab9b
Changes changing hamlib_port_t to pointer are not backwards compatible
2022-01-25 17:41:26 -06:00
Mike Black W9MDB
9e86e62238
Enable async I/O by default
...
Change hamlib_port_t to a pointer in rig.state
Deprecate static hamlib_port_t structure
New hamlib_port_t structure at end of rig.state
Clients built with older hamlib will use old structure in DLL
Clients built with newer hamlib will use new structure in DLL
So we maintain backwards compatibility until Hamlib 5.0
https://github.com/Hamlib/Hamlib/issues/894
2022-01-25 07:59:47 -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
Mikael Nousiainen
c764336e73
Fix build warnings caused by changes to I/O function signatures
2021-12-18 23:49:45 +02:00
Mike Black W9MDB
d820ee9dbf
Add expected_len to read_string function for potential serial I/O speedup
...
https://github.com/Hamlib/Hamlib/issues/850
2021-11-24 13:02:39 -06:00
Mike Black W9MDB
8fe190d622
Reduce error messages about RIG_VFO_OTHER which only applies to some rigs like Icom rigs with the 0x25 command
...
Add a flush_flag to read_string so that the new serial_flush will not produce a timeout value when flushing
https://github.com/Hamlib/Hamlib/issues/835
2021-11-01 23:43:45 -05:00
Mike Black W9MDB
283281c4cb
astyle all files preparing for 4.3 release
2021-08-26 06:49:24 -05:00
Mike Black W9MDB
4bfd71f91f
Fix Icom split and implement reverse split
...
These should work now from rigctl and via the API
S VFOB 1 VFOA
S Sub 1 Main
https://github.com/Hamlib/Hamlib/issues/754
2021-08-02 23:37:31 -05:00
Michael Black W9MDB
1fdbebd7b2
Fix rigctlcom VFOB set_freq
...
https://github.com/Hamlib/Hamlib/issues/620
2021-03-20 11:51:41 -05:00
Michael Black W9MDB
bb43078b25
More work on SATMODE for rigctlcom.c
...
https://github.com/Hamlib/Hamlib/issues/620
2021-03-20 11:21:11 -05:00
Michael Black W9MDB
dee6bd6524
Add SA command handling to rigctlcom.c
...
https://github.com/Hamlib/Hamlib/issues/620
2021-03-19 14:59:42 -05:00
Michael Black W9MDB
ab0ae7d6b1
https://github.com/Hamlib/Hamlib/issues/618
2021-03-19 11:19:15 -05:00
Michael Black W9MDB
1fcb9404b9
More changes to support macro renaming
2021-03-06 14:59:57 -06: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
65de309e70
Fix rigctlcom to work with Main/Sub rigs too
...
https://github.com/Hamlib/Hamlib/issues/302
2020-06-23 22:57:36 -05:00
Michael Black W9MDB
a9d43a1fbe
Remove rig_flush from rigctlcom.c -- OmniRig not happy being flushed
...
https://github.com/Hamlib/Hamlib/issues/273
2020-06-23 17:19:48 -05:00
Michael Black W9MDB
1be5c71e76
More conversions to rig_flush
...
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 08:39:11 -05:00
Michael Black W9MDB
a3c4eb9ee0
Fix cppcheck warnings
2020-06-21 22:31:31 -05:00
Michael Black W9MDB
f71c12da94
astyle files
2020-06-09 22:37:03 -05:00
Michael Black W9MDB
207c50f36b
Fix rigctlcom split indication in IF generation
...
Add some debug to see the cmd being requested by the client
https://github.com/Hamlib/Hamlib/issues/272
2020-06-01 12:11:15 -05:00
Michael Black W9MDB
2813f0ef63
astyle files
2020-05-11 22:39:10 -05:00
mdblack98
f8321a36f4
Fix cppcheck warnings and fill out unused RIG_LEVEL items
2020-05-05 23:33:40 -05:00
mdblack98
3794bc5a0a
Fix cppcheck warnings
2020-05-05 09:38:36 -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
8fd5e16363
astyle files
2020-03-26 11:11:46 -05:00
Michael Black
73b4257cfb
cppcheck-suppress rigctlcom.c
2020-03-24 09:58:04 -05:00
Michael Black
bda5feb1bd
More cppcheck changes
2020-03-23 10:13:02 -05:00
Michael Black
ff8ddf018c
astyle all C files
2020-02-23 11:26:09 -06:00
Michael Black
7ee3a702f5
Replace all usleep with hl_usleep
...
Several places where usleep max value could be overflowed
New hl_usleep can take values > 1000000
2020-01-07 23:18:56 -06:00
Michael Black
520066e3e7
Fix cppcheck warnings in rigctlcom.c
2019-12-24 15:41:57 -06:00
Michael Black
9882448494
Fix cppcheck warnings in rigctlcom.c
2019-12-19 11:59:12 -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
0207b45ff8
Fix cppcheck warnings in rigctlcom.c
2019-12-08 23:39:56 -06:00
Michael Black
e6264c4f6f
Add PKT mode translations to rigctlcom
2019-12-02 12:23:04 -06:00
Michael Black
1ceae3a3f3
Remove debug from rigctlcom.c
2019-12-01 09:13:35 -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
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
Michael Black
5f43509d82
astyle format of rigctlcom.c
2019-02-13 15:23:27 -06:00