Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: WRS_mechanamu_test WRS2019_master
Revision 1:4ebb30d54be7, committed 2018-10-10
- Comitter:
- satoyuki1111
- Date:
- Wed Oct 10 05:34:43 2018 +0000
- Parent:
- 0:359eba7592ca
- Child:
- 2:4fc4593498d7
- Commit message:
- MakeSequencer v1.1
Changed in this revision
| MakeSequencer.cpp | Show annotated file Show diff for this revision Revisions of this file |
| MakeSequencer.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
--- a/MakeSequencer.h Tue Oct 09 12:19:02 2018 +0000
+++ b/MakeSequencer.h Wed Oct 10 05:34:43 2018 +0000
@@ -15,13 +15,14 @@
bool FileOpen();
void getGcode(int _seq,int* _array);
bool ReadGcode();
+ int getGcodeSize();
private:
char buf[256];
string code[1][CODE_LENGTH];
int data[ARRAY_EREMENT][CODE_LENGTH];
bool find[ARRAY_EREMENT];
- const char* _name;
+ int codesize;
LocalFileSystem *_local;
FILE *_fp;
};