From: daniel watson Date: Thu, 14 Jan 2016 00:47:57 +0000 (-0800) Subject: use sync to ensure file written to sd card X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=commitdiff_plain;h=17359f928d9afe94c74008af8dd438280dd9c998 use sync to ensure file written to sd card rather than rely on just waiting for 1 second, use sync to ensure that copying the generated gcode to the sd card is complete before unmounting it. this will most of the time be quicker than 1 second, but also will be longer if necessary. --- diff --git a/3d-printables/Makefile b/3d-printables/Makefile index 05367aa..baec12c 100644 --- a/3d-printables/Makefile +++ b/3d-printables/Makefile @@ -9,7 +9,7 @@ %-makerfarm.print: %-makerfarm.gcode cp $< /media/${USER}/3D-PRINTER - sleep 1 + sync umount /media/${USER}/3D-PRINTER %-materia-101.gcode: %.stl materia-101.ini