Grab frame before snapshot

This commit is contained in:
Rene Zeldenthuis
2022-11-06 11:02:32 +01:00
parent 9d8479ab31
commit e6acdbe8a1

View File

@@ -149,6 +149,7 @@ void handle_snapshot()
return;
}
cam.run();
if (cam.getfb() == nullptr)
{
web_server.send(404, "text/plain", "Unable to obtain frame buffer from the camera");