Reading Gcode in LocalFiileSystem and encodeing int array. but this program has bug.probably

Fork of MakeSequencer by yuki sato

Revision:
4:1d7c50f17687
Parent:
3:09ee560a3007
diff -r 09ee560a3007 -r 1d7c50f17687 MakeSequencer.h
--- a/MakeSequencer.h	Thu Oct 11 11:23:53 2018 +0000
+++ b/MakeSequencer.h	Wed Oct 17 01:09:47 2018 +0000
@@ -3,8 +3,9 @@
 
 #include "mbed.h"
 #include "string"
-#define CODE_LENGTH 100
-#define ARRAY_EREMENT 10
+#define CODE_LENGTH 30
+#define ARRAY_EREMENT 5
+#define BUF 256
 
 
 class MakeSequencer
@@ -14,20 +15,15 @@
     
     bool FileOpen();
     void getGcode(int _row,int aSize,int* _array);
+    int  getGcodeSize();
     bool ReadGcode();
-    int  getGcodeSize();
     
-    private:
-    char   _buf[256];
+    private: 
     int    _data[ARRAY_EREMENT][CODE_LENGTH];
     int    _codesize;
-    
-    int    _tempnum[ARRAY_EREMENT];
     int    _ele;
-    char   _element[ARRAY_EREMENT][CODE_LENGTH];
     char   _char;
     int    _count;
-    bool   _check[ARRAY_EREMENT][CODE_LENGTH];
     
     LocalFileSystem *_local;
     FILE *_fp;