From fed46df7148d7e0fcecf19a73a0cbff1e2a16631 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 31 May 2017 15:54:39 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=93=B0=EA=B8=B0=20?= =?UTF-8?q?=ED=9B=84=20=EB=B0=94=EB=A1=9C=20sync=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/cookprogram.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/gui/oven_control/cookprogram.cpp b/app/gui/oven_control/cookprogram.cpp index 3c17a75..93132cb 100644 --- a/app/gui/oven_control/cookprogram.cpp +++ b/app/gui/oven_control/cookprogram.cpp @@ -2,6 +2,8 @@ #include +#include "unistd.h" + #include "cookbook.h" namespace { @@ -442,6 +444,9 @@ void writeAuto() stream << "\n"; } + + file.close(); + sync(); } void writeManual() @@ -466,6 +471,9 @@ void writeManual() << e.fan << "," << e.coreTemp << "\n"; } + + file.close(); + sync(); } bool initialized = false; -- 2.1.4