forked fromzephyrproject-rtos/gsoc-2022-arduino-core
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork22
Commitaef4efc
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 tothe 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 parentf2300ea commitaef4efc
2 files changed
+13
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
|
Lines changed: 11 additions & 0 deletions
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
Comments
(0)