Commit 968093c
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 bf5f42a commit 968093c
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