diff options
author | Emanuele Caruso <emanuele.caruso@gmail.com> | 2011-05-11 01:12:19 +0200 |
---|---|---|
committer | Emanuele Caruso <emanuele.caruso@gmail.com> | 2011-05-11 01:12:19 +0200 |
commit | f2f0ebe09c10475fe30de1113e7c8fae0dab7da5 (patch) | |
tree | 13bff34827a545d5abcd310232b3e38b3b80c5b6 | |
parent | 140f11833c8102f761e7d13b3962dd4f542818ac (diff) |
Dramatically decreased GCODE write time to SD
-rw-r--r-- | Tonokip_Firmware/Tonokip_Firmware.pde | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index 9c395f8..fa8c861 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -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."); |