Commit 7e788c4
committed
If sketch is not connected to serial - dump serial output
Current code would hang after a few Serial.print like statements happened when we are not connected to
the Serial monitor.
So I put overrides in for the Serial.write(buf, cnt) and Serial.flush()
That would first check to see if Serial returns true (DTR)...
This appears to match the behavior of the MBED Portenta H8 code.1 parent 55fa748 commit 7e788c4
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
127 | 138 | | |
128 | 139 | | |
0 commit comments