Dramatically decreased GCODE write time to SD
This commit is contained in:
parent
140f11833c
commit
f2f0ebe09c
1 changed files with 1 additions and 1 deletions
|
|
@ -314,9 +314,9 @@ void loop()
|
|||
if(savetosd){
|
||||
if(strstr(cmdbuffer[bufindr],"M29")==NULL){
|
||||
write_command(cmdbuffer[bufindr]);
|
||||
file.sync();
|
||||
Serial.println("ok");
|
||||
}else{
|
||||
file.sync(); // maybe this call is not needed
|
||||
file.close();
|
||||
savetosd=false;
|
||||
Serial.println("Done saving file.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue