Commit 0bb7b95
committed
fix(logging): Corrected FPS calculation
Previously, last_frame was only updated once at the beginning of stream_handler,
leading to incorrect FPS and avg_frame_time computation.
This commit ensures last_frame is updated on each iteration after last FPS computation,
resulting in accurate FPS logging.
Fixes #109201 parent f22866f commit 0bb7b95
File tree
1 file changed
+6
-5
lines changed- libraries/ESP32/examples/Camera/CameraWebServer
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | 219 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 220 | + | |
225 | 221 | | |
226 | 222 | | |
227 | 223 | | |
| |||
236 | 232 | | |
237 | 233 | | |
238 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| |||
0 commit comments