Skip to content

Commit 7d37fa7

Browse files
committed
StdioSerialMultiple: call exit(0) to terminate on desktop
1 parent ea0aaa3 commit 7d37fa7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/StdioSerialMultiple/StdioSerialMultiple.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ void setup(void) {
3636

3737
Serial1.println(F("Printing to STDOUT"));
3838
Serial2.println(F("Printing to STDERR"));
39+
40+
#if defined(EPOXY_DUINO)
41+
exit(0);
42+
#endif
3943
}
4044

4145
void loop(void) {}

0 commit comments

Comments
 (0)