Interactive serial interface for sending commands to an embedded system using serial communications. This will be helpful if you want to send commands to serial port and be able to correct the wrong text entered at the terminal

Dependencies:   mbed

Revision:
4:183056edc0f4
Parent:
3:12840abcee40
Child:
5:bfc6c756c8e9
--- a/main.cpp	Wed Sep 20 05:45:34 2017 +0000
+++ b/main.cpp	Wed Sep 20 06:18:04 2017 +0000
@@ -33,11 +33,7 @@
              if (i>0){
             i--;
             }
-            stringBuf[i]='\0';
-            if (i>0){
-            i--;
-            }
-            
+            stringBuf[i]='\0';         
         } else {
             pc.putc(stringBuf[i]);
             i++;