From e9ef4c1a81d1de111d2e2996377159bcf1e64dab Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sat, 16 Sep 2023 09:47:30 -0500 Subject: [PATCH] Add ModeList to multicast packet https://github.com/Hamlib/Hamlib/issues/695 --- src/multicast.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/multicast.c b/src/multicast.c index a3b7474fb..422d7cd98 100644 --- a/src/multicast.c +++ b/src/multicast.c @@ -15,6 +15,7 @@ #include "misc.h" #include "multicast.h" #include "network.h" +#include "sprintflst.h" #define RIG_MULTICAST_ADDR "224.0.0.1" #define RIG_MULTICAST_PORT 4532 @@ -302,6 +303,8 @@ static int multicast_send_json(RIG *rig) json_add_string(msg, "VFOCurr", rig_strvfo(rig->state.current_vfo), 1); json_add_int(msg, "PTT", rig->state.cache.ptt, 1); json_add_int(msg, "Split", rig->state.cache.split, 1); + rig_sprintf_mode(buf, sizeof(buf), rig->state.mode_list); + json_add_string(msg, "ModeList", buf,1); strcat(msg, "\"VFOs\": [\n"); json_add_vfoA(rig, msg); json_add_vfoB(rig, msg);