]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
send a custom PING message once serial port is opened
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 4 Jan 2022 10:19:08 +0000 (15:49 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 4 Jan 2022 10:19:08 +0000 (15:49 +0530)
rigctl.c

index 3c0803505a9877934c5c3c8672a566bb224aabf7..6c181db5085b51d413a35c945c0576238442c43e 100644 (file)
--- 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;
 }