Commit fed46df7148d7e0fcecf19a73a0cbff1e2a16631
1 parent
461652945c
Exists in
master
and in
2 other branches
파일 쓰기 후 바로 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 | 2 | |
3 | 3 | #include <QTimer> |
4 | 4 | |
5 | +#include "unistd.h" | |
6 | + | |
5 | 7 | #include "cookbook.h" |
6 | 8 | |
7 | 9 | namespace { |
... | ... | @@ -442,6 +444,9 @@ void writeAuto() |
442 | 444 | |
443 | 445 | stream << "\n"; |
444 | 446 | } |
447 | + | |
448 | + file.close(); | |
449 | + sync(); | |
445 | 450 | } |
446 | 451 | |
447 | 452 | void writeManual() |
... | ... | @@ -466,6 +471,9 @@ void writeManual() |
466 | 471 | << e.fan << "," |
467 | 472 | << e.coreTemp << "\n"; |
468 | 473 | } |
474 | + | |
475 | + file.close(); | |
476 | + sync(); | |
469 | 477 | } |
470 | 478 | |
471 | 479 | bool initialized = false; | ... | ... |