Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.2k
Commit4545eb8
rp2: Disable the LWIP tick timer when not needed.
Prevents lightsleep being woken up every 64ms to service LWIP timers, when:1. No netif is up, and2. No TCP sockets are activeThe TCP socket check may not be strictly necessary, but without ticking thetcp timer they won't ever time out by themselves.This work was funded through GitHub Sponsors.Signed-off-by: Angus Gratton <angus@redyak.com.au>1 parenta1ee42c commit4545eb8
1 file changed
+37
-2
lines changedLines changed: 37 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
| |||
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 |
| |
43 | 47 |
| |
44 | 48 |
| |
| |||
137 | 141 |
| |
138 | 142 |
| |
139 | 143 |
| |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
140 | 161 |
| |
141 | 162 |
| |
| 163 | + | |
| 164 | + | |
142 | 165 |
| |
143 | 166 |
| |
144 | 167 |
| |
145 |
| - | |
| 168 | + | |
146 | 169 |
| |
147 | 170 |
| |
148 | 171 |
| |
149 | 172 |
| |
150 |
| - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
151 | 186 |
| |
152 | 187 |
| |
153 | 188 |
|
0 commit comments
Comments
(0)