Commit 6214fa3
committed
esp32/mphalport: Always yield at least once in delay_ms.
This helps the OS switch to and give other threads processing time during
the sleep. It also ensures that pending events are handled, even when
sleeping for 0ms.
Fixes issue micropython#5344.
Signed-off-by: Damien George <[email protected]>1 parent 2cfbe5b commit 6214fa3
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
149 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
150 | 160 | | |
151 | | - | |
152 | | - | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
0 commit comments