use sync to ensure file written to sd card
authordaniel watson <ozzloy@gmail.com>
Thu, 14 Jan 2016 00:47:57 +0000 (16:47 -0800)
committerdaniel watson <ozzloy@gmail.com>
Thu, 14 Jan 2016 00:47:57 +0000 (16:47 -0800)
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.

3d-printables/Makefile

index 05367aafed7bf708f43b385647012948b4d0eb4b..baec12c22911f307b15e5e88b950d7f7edf4b41a 100644 (file)
@@ -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