Commit fed46df7148d7e0fcecf19a73a0cbff1e2a16631

Authored by 김태훈
1 parent 461652945c
Exists in master and in 2 other branches fhd, fhd-demo

파일 쓰기 후 바로 sync하도록 수정

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
app/gui/oven_control/cookprogram.cpp
@@ -2,6 +2,8 @@ @@ -2,6 +2,8 @@
2 2
3 #include <QTimer> 3 #include <QTimer>
4 4
  5 +#include "unistd.h"
  6 +
5 #include "cookbook.h" 7 #include "cookbook.h"
6 8
7 namespace { 9 namespace {
@@ -442,6 +444,9 @@ void writeAuto() @@ -442,6 +444,9 @@ void writeAuto()
442 444
443 stream << "\n"; 445 stream << "\n";
444 } 446 }
  447 +
  448 + file.close();
  449 + sync();
445 } 450 }
446 451
447 void writeManual() 452 void writeManual()
@@ -466,6 +471,9 @@ void writeManual() @@ -466,6 +471,9 @@ void writeManual()
466 << e.fan << "," 471 << e.fan << ","
467 << e.coreTemp << "\n"; 472 << e.coreTemp << "\n";
468 } 473 }
  474 +
  475 + file.close();
  476 + sync();
469 } 477 }
470 478
471 bool initialized = false; 479 bool initialized = false;