Skip to content

Commit 9ea5785

Browse files
committed
add flushes
1 parent 694e6dc commit 9ea5785

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MIDAS/src/hilsim/stream/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,14 @@ int main(int argc, char** argv) {
336336
if (!inptr) {
337337
std::cerr << "No file specified" << std::endl;
338338
printf(".ERR no_ifs\n");
339+
fflush(stdout);
339340
break;
340341
}
341342

342343
if (!Serial.isDeviceOpen()) {
343344
std::cerr << "No serial open" << std::endl;
344345
printf(".ERR no_ser\n");
346+
fflush(stdout);
345347
break;
346348
}
347349

0 commit comments

Comments
 (0)