mdblack98
f8321a36f4
Fix cppcheck warnings and fill out unused RIG_LEVEL items
2020-05-05 23:33:40 -05:00
mdblack98
a3b1b055b3
Fix cppcheck warnings
2020-05-05 11:32:09 -05:00
mdblack98
bf1a05084d
astyle files
2020-05-03 17:24:42 -05:00
mdblack98
85ecc848f8
Make netrigctl_close synchronous
...
There was a race condition where closing and reopening quickly could cause rigctld to fail
2020-05-03 17:08:29 -05:00
mdblack98
12320d451f
Add a short sleep to dummy_open and dummy_close
2020-05-03 16:04:59 -05:00
mdblack98
e8ee703605
Change hl_sleep to usleep in dummy.c
2020-04-27 17:31:44 -05:00
mdblack98
5eb5b6f3d8
https://github.com/Hamlib/Hamlib/issues/227
...
Added read_only flag everywhere
2020-04-26 14:37:03 -05:00
mdblack98
7dcb0ae88e
astyle updates
2020-04-25 11:28:38 -05:00
mdblack98
a444e6eb20
Add one more retry to netrigctl.c
2020-04-22 14:36:27 -05:00
mdblack98
dc29c94a76
Allow netrigctl 1 retry
2020-04-22 10:03:26 -05:00
mdblack98
ee562ddd03
Add some sleeps to the dummy emulator for more realistic behavior
2020-04-22 09:03:14 -05:00
Michael Black W9MDB
8e1f6c9fc1
Fix debug statement and allow read_string error to retry in flrig.c
2020-04-21 07:56:00 -05:00
Michael Black
fa101ae467
Add comment to netrigctl.c
2020-04-04 15:48:53 -05:00
Michael Black
6a2e675216
Added new protocol 1 for dumpcaps with vfo_ops as the first one implemented
...
Protocol 1 is setting=value. Order does not matter. Can be multiline.
And is forward compatible as new values will just generate warnings on older versions
2020-04-04 09:38:50 -05:00
Michael Black
b040803765
Standard all version numbers to YYYYMMDD.N where n is intended for multiple versions in one day.
...
So typically .N will be .0
2020-03-29 23:03:21 -05:00
Michael Black
679db60483
Fix some more cppcheck warnings
2020-03-19 12:10:20 -05:00
Michael Black
a6631a412e
Fix cppcheck warning in dummy.c
2020-03-19 09:19:06 -05:00
Michael Black
1a4faf22d0
Add set_conf get_conf to rot_dummy.c
2020-03-10 09:17:55 -05:00
Michael Black
d0f114b178
Add macro_name to caps structures for rig, rot, and amp devices
2020-03-05 23:48:14 -06:00
Michael Black
d856248178
Add RIG_MODEL macro and change all rigs to support it
2020-03-05 08:44:18 -06:00
Michael Black
ff8ddf018c
astyle all C files
2020-02-23 11:26:09 -06:00
Michael Black
296c10a616
Increase size of vfostr object in netrigctl
2020-02-20 14:54:50 -06:00
Michael Black
e315f5e3ac
Added skeleton for new get_ant function that will return ant_tx and ant_rx if known
...
Every rig will need to be reviewed to fill these in as appropriate
2020-02-18 23:10:14 -06:00
Michael Black
849bc5412b
Add ANT3&4 to dummy rig and promote to stable
2020-02-17 23:13:22 -06:00
Michael Black
164c2d3798
Add range labels to dummy
2020-02-17 06:44:24 -06:00
Michael Black
feba5ac89a
Change rigctl Y and y commands to be 1-based
...
Added simulation of 4 antennas to dummy device
Examples testing 4 antennas with option value=ant#
Rig command: y 0
Antenna: 1
Option: 0
Rig command: Y 1 1
Rig command: Y 2 2
Rig command: Y 3 3
Rig command: Y 4 4
Rig command: Y 5 5
set_ant: error = Invalid parameter
Rig command: y 0
Antenna: 4
Option: 4
Rig command: Y 1 1
Rig command: y 0
Antenna: 1
Option: 1
Rig command: y 1
Antenna: 1
Option: 1
Rig command: y 2
Antenna: 2
Option: 2
2020-02-10 12:17:30 -06:00
Michael Black
7e8938ae65
Changed y command to now use mandatory antenna argument
...
Put a looplimit on icom_get_ant_count trying to get autodetect to work
Changes to icom_get_ant_count to try and get this working
Added dummy antenna # args to rigs that don't care i.e. only have 1 antenna
2020-02-02 08:38:10 -06:00
Michael Black
60215785e1
Changes to get antenna calls working in rigctld
...
Change to ic785x.c to get antenna calls working
Added automatic detection of # of antennas for Icom rigs
Note that rig_get_ant returns a zero-based antenna# and not RIG_ANT1/2/3/4....
rig_set_ant on the other hand takes RIG_ANT1/2/3/4 as the argument for antenna
These RIG_ANT settings are a bit mask
This may have to be converted in the rig back end to whatever the rig expects
2020-01-30 12:12:13 -06:00
Bill Somerville
caed2d73a1
Improved get PTT state handling in dummy backend
2020-01-26 14:53:04 +00:00
Michael Black
bf8e90d214
Remove unused var in netrigctl.c
2020-01-21 18:08:05 -06:00
Michael Black
d853c36fb3
Change get_ant to add another option for icom rigs (and others if needed)
2020-01-21 17:53:12 -06:00
Michael Black
2478f6b0f8
Remove double free from flrig.c
2020-01-17 22:22:09 -06:00
Michael Black
a43193c6a4
Fix cppcheck warning in dummy.c
2020-01-13 22:57:59 -06:00
Michael Black
bcd373c8a6
Fix cppcheck warning in amp_dummy.c
2020-01-12 22:53:45 -06:00
Michael Black
11263d691d
Fix cppcheck warning in trxmanage.c
2020-01-12 22:49:20 -06:00
Michael Black
e426fd6171
Fix cppcheck warning in rot_dummy.c
2020-01-12 22:47:43 -06:00
Michael Black
9c16b55337
Fix cppcheck warning in netrigctl.c
2020-01-12 22:45:31 -06:00
Michael Black
2ec1e3d71f
Fix cppcheck warning in flrig.c
2020-01-12 22:43:40 -06:00
Michael Black
97ea79082a
Fix cppcheck warnings in trxmanager.c
2020-01-08 22:50:03 -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
98a7b825ab
Fix cppcheck warning in netrigctl.c
2020-01-05 17:07:09 -06:00
Michael Black
eec16fa625
Fix cppcheck warnings in netrigctl.c
2019-12-18 22:34:37 -06:00
Michael Black
7d0805628a
Fix cppcheck warnings in flrig.c
2019-12-18 22:33:06 -06:00
Michael Black
a052ea4003
Fix FLRig to expire VFOB cache when VFOA mode is set
2019-12-18 10:41:00 -06:00
Michael Black
b3c6b9d707
Add rig_strrmodes function and fix flrig to print mode list correctly
2019-12-12 09:13:30 -06:00
Michael Black
444fcfa575
Replace XOPEN with AC_USE_SYSTEM_EXTENSIONS
2019-12-10 15:54:12 -06:00
Michael Black
3220c37ff2
Change XOPEN to 600
2019-12-10 14:50:24 -06:00
Michael Black
3a3d66d52d
Now compiles with -std=c99 and no c99 warnings
2019-12-09 22:45:37 -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
eca1987360
Clean up cppcheck warnings in trxmanager.c
2019-12-06 16:34:18 -06:00