From: c vw <dl1ycf@darc.de>
Date: Tue, 26 May 2020 16:31:58 +0000 (+0200)
Subject: Silently accept AI0 command (used by many clients)
X-Git-Url: https://git.rkrishnan.org/simplejson/components/%3C?a=commitdiff_plain;h=dfbe10bbfbaff83af9d8e6fe4237dd2e1a4ea980;p=pihpsdr.git

Silently accept AI0 command (used by many clients)
---

diff --git a/rigctl.c b/rigctl.c
index ba749e1..58787b0 100644
--- a/rigctl.c
+++ b/rigctl.c
@@ -2557,7 +2557,15 @@ int parse_cmd(void *data) {
           }
         case 'I': //AI
           // set/read Auto Information
-          implemented=FALSE;
+          // many clients start the connection with an "AI0" command.
+          // piHPSDR is constantly in an "AI0" state, therefore
+          // silently ignore AI0 commands and flag an error for
+          // all other possiblities
+          if (command[2] == '0' && command[3] == ';') {
+            // do nothing
+          } else {
+            implemented=FALSE;
+          }
           break;
         case 'L': // AL
           // set/read Auto Notch level