editable serial input line buffer

Dependents:   MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more

Revision:
6:88e92f832c9a
Parent:
5:1a14de1c4d7b
Child:
7:0bda7cfee767
--- a/CmdLine.cpp	Tue Jul 16 10:37:16 2019 +0000
+++ b/CmdLine.cpp	Tue Aug 13 16:20:23 2019 -0700
@@ -67,7 +67,7 @@
  */
 void CmdLine::append(char ch)
 {
-    void diagnostic_led_EOF();
+    // void diagnostic_led_EOF();
     void main_menu_status(CmdLine & cmdLine);
 
     // append ch to buf, unless BS or EOL or other editing character
@@ -95,10 +95,10 @@
 #define ECHO_EOF_IMMEDIATELY 1
 #if ECHO_EOF_IMMEDIATELY
         case '\x04': // Unicode (U+0004) EOT END OF TRANSMISSION = CTRL+D as EOF end of file
-            diagnostic_led_EOF();
+            if (diagnostic_led_EOF) { diagnostic_led_EOF(); }
             //~ main_menu_status(*this);
             associatedSerialPort.printf("** U+0004 EOT = EOF **"); // immediately echo EOF for test scripting
-            diagnostic_led_EOF();
+            if (diagnostic_led_EOF) { diagnostic_led_EOF(); }
             associatedSerialPort.printf("\r\n\x04\r\n"); // immediately echo EOF for test scripting
             //~ associatedSerialPort.printf("\x1a"); // immediately echo EOF for test scripting
             //~ associatedSerialPort.printf("\x04"); // immediately echo EOF for test scripting
@@ -106,10 +106,10 @@
             clear(); // EOF discard any pending commands, to avoid surprise
             break;
         case '\x1a': // Unicode (U+001A) SUB SUBSTITUTE = CTRL+Z as EOF end of file
-            diagnostic_led_EOF();
+            if (diagnostic_led_EOF) { diagnostic_led_EOF(); }
             //~ main_menu_status(*this);
             associatedSerialPort.printf("** U+001A SUB = EOF **"); // immediately echo EOF for test scripting
-            diagnostic_led_EOF();
+            if (diagnostic_led_EOF) { diagnostic_led_EOF(); }
             associatedSerialPort.printf("\x1a"); // immediately echo EOF for test scripting
             associatedSerialPort.printf("\x04"); // immediately echo EOF for test scripting
             associatedSerialPort.printf("\x1a"); // immediately echo EOF for test scripting