Commit 9a871b6
Add delay to Serial1.end() allow GPIO lines to settle
Through testing, it was discovered that if Serial1.begin() is called again
immediately after Serial1.end(), then any attempt to write data immediately
following the begin() call could result in corrupted frames.
After calling Serial1.end(), it will be at least 300us before those pins can
be used as UART again.1 parent e3d90c1 commit 9a871b6
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
0 commit comments