From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Tue, 4 Jan 2022 10:19:08 +0000 (+0530)
Subject: send a custom PING message once serial port is opened
X-Git-Url: https://git.rkrishnan.org/vdrive/components/frontends/%22file:/using.html?a=commitdiff_plain;h=44672cc2a4f14acaba5960b63b16b904e6de642b;p=pihpsdr.git

send a custom PING message once serial port is opened
---

diff --git a/rigctl.c b/rigctl.c
index 3c08035..6c181db 100644
--- a/rigctl.c
+++ b/rigctl.c
@@ -4152,6 +4152,11 @@ int launch_serial() {
     g_print("g_thread_new failed on serial_server\n");
     return 0;
   }
+
+  // send a PING message
+  char *ping = "PING";
+  send_resp(serial_client->fd, ping);
+
   return 1;
 }