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
tested with IC-7400 (aka IC-746Pro)
note:
if the csv line is without frequency or mode the memory channel
will be cleared
Closes: https://github.com/Hamlib/Hamlib/issues/125
on channel_str_t
- enable pol to align the structure with membuf
needed by ic746pro_get_channel() to save the description name
on ic746pro_get_channel()
- fix chanbuf length
- add split configuration
Quell the following clang warning:
CC id51.lo
../../../hamlib/rigs/icom/id51.c:195:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.set_powerstat = icom_set_powerstat,
^~~~~~~~~~~~~~~~~~
../../../hamlib/rigs/icom/id51.c:181:22: note: previous initialization is here
.set_powerstat = icom_set_powerstat,
^~~~~~~~~~~~~~~~~~
1 warning generated.