1st release (without comment)

Revision:
2:38567b4310a4
Parent:
1:5e6c5fbd48d6
Child:
3:ff36fb2cefb0
--- a/RMS_UART.cpp	Thu Sep 15 08:07:31 2016 +0000
+++ b/RMS_UART.cpp	Thu Sep 15 08:58:30 2016 +0000
@@ -116,14 +116,16 @@
         /* Call function for check contents */
         SendContentToFile();
         
-        /* Set fill buffer to command */
-        MsgContentManagement = false;
+        
     }
     /* Content buffer are full */
     if(Content_index == CONTENT_BUF_SIZE)
     {
         /* Call function for check contents */
-        SendContentToFile();
+        ClearCmdIndexAndBuf();
+        ClearContentIndexAndBuf();
+        ClearFileNameBuf();
+        serial_device.printf("\n -- File is too large!!\n");
     }
 }
 
@@ -177,7 +179,7 @@
     else
     {
         /* Not receive true type command */
-        if(Msg_index >= 2)
+        if(Msg_index >= MSG2CMD)
         {
             if(!((strstr(Msg_RxBuf,CMD_LISTFILE)) || 
                   (strstr(Msg_RxBuf,CMD_READFILE)) || 
@@ -226,9 +228,7 @@
         
         /* Set event flag for fill contents buffer */
         MsgContentManagement = true; 
-        
-        /* User indicated write command status */
-        printf("\n-- Write command received\n");
+
     }
     /* Command type is delete ($df) */
     else if(strstr(Msg_RxBuf,CMD_DELETEFILE))