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

Fork of MakeSequencer by yuki sato

Revision:
1:4ebb30d54be7
Parent:
0:359eba7592ca
Child:
2:4fc4593498d7
--- a/MakeSequencer.cpp	Tue Oct 09 12:19:02 2018 +0000
+++ b/MakeSequencer.cpp	Wed Oct 10 05:34:43 2018 +0000
@@ -52,10 +52,16 @@
     }
 }
 
+int MakeSequencer::getGcodeSize()
+{
+    return codesize;
+}
+
 bool MakeSequencer::ReadGcode()
 {
     for(int i = 0;fgets(buf,sizeof(buf), _fp) != NULL;i++)
     {
+        codesize = i+1;
         if(i > CODE_LENGTH)
             return false;