version1

Dependencies:   mbed

Revision:
1:8e615c17b2b3
Parent:
0:ac7bd75171ef
Child:
2:8c662c92385d
diff -r ac7bd75171ef -r 8e615c17b2b3 main.cpp
--- a/main.cpp	Tue Mar 19 15:50:36 2019 +0000
+++ b/main.cpp	Tue Mar 19 16:08:04 2019 +0000
@@ -54,7 +54,8 @@
             if (data[data_size-1]==255){
                 num_data = 0;
                 package = 1;
-            }   
+            }
+            else num_data = 0;
         }
     }
 }
\ No newline at end of file