Skip to content

Commit 67634aa

Browse files
committed
only report .BEGIN on success
1 parent 7898384 commit 67634aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MIDAS/src/hilsim/stream/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,14 @@ int main(int argc, char** argv) {
264264
case 'r':
265265
// r(ealtime) -- streams data to com port in real time
266266
{
267-
printf(".BEGIN\n");
268267
fflush(stdout);
269268
if (!inptr) {
270269
std::cerr << "No file specified" << std::endl;
271270
break;
272271
}
273272

273+
printf(".BEGIN\n");
274+
274275
if (outptr) {
275276
fputs(".KAMAJI_STREAM\n", outptr);
276277
fprintf(outptr, ".CHECKSUM %X\n", _inf_checksum);

0 commit comments

Comments
 (0)