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
3498fb1cf6
Balancing RETURNFUNC2 statements
2022-02-02 23:33:28 -06:00
Mike Black W9MDB
a20a91e381
astyle flrig.c
2022-02-02 23:25:17 -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
0588d3be3a
Add int and string to allowable xml tokens in flrig.c
2022-01-29 22:45:42 -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
f04aa34876
Add set_transaction functions to flrig.c
...
https://github.com/Hamlib/Hamlib/issues/942
2022-01-23 09:02:03 -06:00
Mike Black W9MDB
52ca1f5dfa
Change sprintf to SNPRINTF in dummy
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-18 23:16:45 -06:00
Mike Black W9MDB
8829a8011d
Change sprintf to snprint in dummy directory
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-11 12:17:34 -06:00
Mike Black W9MDB
01b7f81119
Add a data tag to the caps structure and a test in rig_init to ensure the data tag is where it is expected
...
Modify testrigcaps.c to test new data tag
This should detect any changes which corrupt rig_caps from additons/subtractions/changes to the structure
2021-12-31 23:49:29 -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
b11f2e4bbf
Reduce # of retries in FLRig -- don't need as many and was causing timeouts in remote rigctld control
2021-12-06 10:22:37 -06:00
Mike Black W9MDB
63a51c36a1
astyle files preparing for 4.4 release
2021-11-28 12:41:10 -06: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
4c1cbf0aa9
Change flrig FSK/PSK modes to use RTTY instead of PKTUSB
...
https://github.com/Hamlib/Hamlib/issues/823
2021-10-14 10:50:06 -05:00
Mike Black W9MDB
e49693af08
Update version in flrig.c to match format of all others
2021-09-18 06:00:35 -05:00
Mike Black W9MDB
1a7a7a5ae7
Fix flrig modeMap loop to ignore NULL entries
...
https://github.com/Hamlib/Hamlib/issues/798
2021-09-14 11:29:07 -05:00
Mike Black W9MDB
8ab0f0167d
Make flrig compatible with older versions e.g. 1.3.42 on RPi
...
https://github.com/Hamlib/Hamlib/issues/798
2021-09-14 10:02:21 -05:00
Mike Black W9MDB
e21e9b3304
Reduce if clause in flrig.c
2021-09-11 05:33:22 -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
49038c78be
Add a check in flrig to protect strdup from a NULL pointer
...
https://github.com/Hamlib/Hamlib/issues/765
2021-08-14 17:56:32 -05:00
Mike Black W9MDB
0afa000de1
Fix xml tag in flrig.c
2021-07-22 07:04:53 -05:00
Mike Black W9MDB
c3b4eafc2c
Add new xml tag to flrig.c
2021-07-21 23:02:14 -05:00
Mike Black W9MDB
37b16fa283
Improved FLRig error message when requesting a mode that FLRig does not have
2021-06-07 09:32:57 -05:00
Mike Black W9MDB
94410f7a71
Increase FLRig timeout to 5 seconds
2021-05-11 11:59:20 -05:00
Mike Black W9MDB
ec813ae57d
Fix cppcheck warning in flrig.c
2021-04-12 09:31:10 -05:00
Mike Black W9MDB
3ef3a255ff
Remove more verbosity from flrig.c
2021-04-11 17:34:53 -05:00
Mike Black W9MDB
9a0e9c370a
Reduce flrig verbosity a bit
2021-04-11 16:56:04 -05:00
Mike Black W9MDB
89c434cc26
Remove comment from flrig.c
2021-04-09 22:53:06 -05:00
Mike Black W9MDB
9644825308
Update flrig.c to use new set_verify cmds for freq & ptt
2021-04-09 22:47:56 -05:00
Mike Black W9MDB
dae869f390
Fix punctuation error in flrig.c
2021-04-09 17:33:18 -05:00
Mike Black W9MDB
eb63b1c9ea
Enable set_ptt_fast in flrig.c -- Fixed in 1.3.54.17
2021-04-09 17:30:35 -05:00
Mike Black W9MDB
609c9ad8d5
Temporarily disable fast_set_ptt in flrig.c -- not working in FLRig 1.3.54.14
2021-04-08 16:16:35 -05:00
Mike Black W9MDB
def3aee7a6
Add set_ptt_fast capability to flrig.c as default if available
2021-04-08 14:29:40 -05:00
Mike Black W9MDB
4c8dc6e245
Fix flrig vfo inaccessible in flrig_set_split_freq_mode
...
https://github.com/Hamlib/Hamlib/issues/651
2021-04-07 08:26:18 -05:00
Mike Black W9MDB
bbc8e00074
astyle files
2021-04-04 12:50:07 -05:00
Mike Black W9MDB
93f0cc78e9
Fix flrig.c ordering of statement to prevent warning message
2021-04-03 23:45:49 -05:00
Mike Black W9MDB
e06cce4f0d
Fix FLRig initial check of fast modes to avoid setting freq to zero
2021-04-03 23:41:22 -05:00
Mike Black W9MDB
b9faf48a17
Fix FLRig detection of fast modes
...
Timing on ANAN 100 at 115200 is 136ms with freq confirm and 4ms in fast mode
2021-04-03 23:16:57 -05:00
Mike Black W9MDB
a42142312f
Fix FLRig use of fast functions.
...
Defaults to fast functions if they are available.
param FAST_SET_FREQ 0 to turn on confirmation calls for set_freq
param FAST_SET_PTT 0 to turn on confirmation calls for set_ptt
2021-04-03 16:52:35 -05:00
Mike Black W9MDB
fb9c1eac38
Fix FLRig set_VFOA to be default
...
Add FAST_SET_FREQ and FAST_SET_PTT params to enable new function calls in FLRig for fast VFO/PTT setting
This should better support Doppler speed in SATPC32 and gpredict
2021-04-03 14:28:15 -05:00
Mike Black W9MDB
02c985ce3d
Add FLRig set_vfoA_fast detection and use it by default
...
Need to add option to use the regular set_vfoA
2021-04-02 12:07:34 -05:00
Mike Black W9MDB
a3fe52ea6c
In FlRig make rig.get_xcvr null answer non-fatal
2021-04-02 10:28:14 -05:00
Michael Black W9MDB
bcb3aaf162
Increase flrig timeout to 2 seconds
2021-03-31 16:37:46 -05:00
Michael Black W9MDB
0f0dad177b
Reduce timeout in flrig.c -- timeouts causing problems with Log4OMV2
2021-03-28 14:35:20 -05:00
Michael Black W9MDB
3bc39aaec1
astyle files is preparation for 4.2 release
2021-03-15 17:51:22 -05:00
Michael Black W9MDB
20e41b59ec
Fix flrig close/open null return on modes
...
https://github.com/Hamlib/Hamlib/issues/605
2021-03-12 12:12:20 -06:00
Michael Black W9MDB
54f7a2dc70
Remove dead line in flrig.c
2021-03-12 09:12:05 -06:00