From 17359f928d9afe94c74008af8dd438280dd9c998 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Wed, 13 Jan 2016 16:47:57 -0800 Subject: [PATCH] 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. --- 3d-printables/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2