From 6a9cec677af718d97f7f0097524cb235c4e16322 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Fri, 4 Oct 2024 15:43:29 -0500 Subject: [PATCH] Have multicast wait until rig is powered on --- src/multicast.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/multicast.c b/src/multicast.c index 9ef201e12..1c7e57373 100644 --- a/src/multicast.c +++ b/src/multicast.c @@ -390,6 +390,12 @@ void *multicast_thread(void *vrig) while (rs->multicast->runflag) { + while (STATE(rig)->powerstat == RIG_POWER_OFF) + { + rig_debug(RIG_DEBUG_VERBOSE,"%s: waiting for RIG_POWER_ON\n", __func__); + hl_usleep(500*1000); + } + #if 0 if ((retval = rig_get_freq(rig, RIG_VFO_A, &freqA)) != RIG_OK)