forked from Lainports/freebsd-ports
- Some patches not needed now due to adrian@ patches sent upstream.
- Additional changes by @takefu
The distribution tarball uses patch applied to the following master branch because the build is broken.
baea7e8c9a (diff-9df9e2c313e694cf242534e90c1187fe119fac8de7c304ae438de0736209953b.patch)
The error message in build is as follows.
hamlibpy_wrap.c:48824:80: error: use of undeclared identifier 'RIG_FUNCTION_SEND_VOICE_MEM'; did you mean 'RIG_FUNCTION_SEND_MORSE'?
SWIG_Python_SetConstant(d, "RIG_FUNCTION_SEND_VOICE_MEM",SWIG_From_int((int)(RIG_FUNCTION_SEND_VOICE_MEM)));
For a complete log of changes to Hamlib, please visit:
http://sourceforge.net/p/hamlib/code/commit_browser
Major changes in 4.0 affecting usage
Most rig model numbers have changed
RIG_LEVEL_VOX has been deprecated and replaced by RIG_LEVEL_VOXDELAY
rigctl 'f' command now returns VFO argument too
rigctl 'y' and 'Y' command now take/show antenna argument and option.
range_list items are undergoing changes towards a different model TBD
RTS/DTR PTT sharing is off by default now -- use serial_share=1 option to
enable
PR: ports/261105
Reported by: takefu@airport.gm
21 lines
667 B
C
21 lines
667 B
C
--- src/misc.c.orig 2021-12-03 00:09:30 UTC
|
|
+++ src/misc.c
|
|
@@ -884,6 +884,8 @@ static const struct
|
|
{ RIG_LEVEL_SPECTRUM_AVG, "SPECTRUM_AVG" },
|
|
{ RIG_LEVEL_SPECTRUM_ATT, "SPECTRUM_ATT" },
|
|
{ RIG_LEVEL_TEMP_METER, "TEMP_METER" },
|
|
+ { RIG_FUNC_SEND_MORSE, "SEND_MORSE" },
|
|
+ { RIG_FUNC_SEND_VOICE_MEM, "SEND_VOICE_MEM" },
|
|
{ RIG_LEVEL_NONE, "" },
|
|
};
|
|
|
|
@@ -2254,6 +2256,9 @@ void *HAMLIB_API rig_get_function_ptr(rig_model_t rig_
|
|
|
|
case RIG_FUNCTION_WAIT_MORSE:
|
|
return caps->wait_morse;
|
|
+
|
|
+ case RIG_FUNCTION_SEND_VOICE_MEM:
|
|
+ return caps->send_voice_mem;
|
|
|
|
case RIG_FUNCTION_SET_BANK:
|
|
return caps->set_bank;
|