From 027c59d6e94d44ea0c3235f23c43f7fa8a527df6 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 1 Oct 2023 07:38:59 -0500 Subject: [PATCH] Hopefully fix newcat.c compile error on older compiler --- rigs/yaesu/newcat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index bb02f0bef..78ea6a297 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -1940,6 +1940,7 @@ int newcat_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) break; case RIG_PTT_OFF: + { char txoff[] = "TX0;"; SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "%s", txoff); rig_debug(RIG_DEBUG_TRACE, "%s: cmd_str = %s\n", __func__, priv->cmd_str); @@ -1957,6 +1958,7 @@ int newcat_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) // so we increased the sleep from 100ms to 300ms hl_usleep(300 * 1000); } + } break;