From 1fbb03fa92320f49dfa45704a1e557f888a69093 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Wed, 20 Sep 2023 12:17:10 -0500 Subject: [PATCH] Remove multicast.c from build https://github.com/Hamlib/Hamlib/issues/695 --- src/Makefile.am | 2 +- src/iofunc.c | 4 ++-- tests/rigtestmcast.c | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 8d3b0046b..0e57b113b 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,7 +10,7 @@ RIGSRC = hamlibdatetime.h rig.c serial.c serial.h misc.c misc.h register.c regis network.c network.h cm108.c cm108.h gpio.c gpio.h idx_builtin.h token.h \ par_nt.h microham.c microham.h amplifier.c amp_reg.c amp_conf.c \ amp_conf.h amp_settings.c extamp.c sleep.c sleep.h sprintflst.c \ - sprintflst.h cache.c cache.h snapshot_data.c snapshot_data.h multicast.c fifo.c fifo.h \ + sprintflst.h cache.c cache.h snapshot_data.c snapshot_data.h fifo.c fifo.h \ serial_cfg_params.h if VERSIONDLL diff --git a/src/iofunc.c b/src/iofunc.c index 3cb833583..2a8cd887d 100644 --- a/src/iofunc.c +++ b/src/iofunc.c @@ -1417,8 +1417,8 @@ static int read_string_generic(hamlib_port_t *p, if (errno == EAGAIN) { hl_usleep(5 * 1000); - rig_debug(RIG_DEBUG_WARN, "%s: port_read is busy? direct=%d\n", __func__, - direct); +// rig_debug(RIG_DEBUG_WARN, "%s: port_read is busy? direct=%d\n", __func__, +// direct); } } diff --git a/tests/rigtestmcast.c b/tests/rigtestmcast.c index fe87a8512..d136769bb 100644 --- a/tests/rigtestmcast.c +++ b/tests/rigtestmcast.c @@ -31,10 +31,13 @@ int main(int argc, char *argv[]) #endif rig->state.rigport.parm.serial.rate = 38400; rig_open(rig); + // disabled until we change this to the other multicast capability +#if 0 multicast_init(rig, "224.0.0.1", 4532); printf("threadid=%lld\n", (long long)rig->state.multicast->threadid); pthread_join(rig->state.multicast->threadid, NULL); pthread_exit(NULL); +#endif return 0; } #endif