Dramatically decreased GCODE write time to SD

This commit is contained in:
Emanuele Caruso 2011-05-11 01:12:19 +02:00
parent 140f11833c
commit f2f0ebe09c

View file

@ -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.");