Skip to content

Commit 83b3475

Browse files
committed
fixing jpeg still capture
1 parent 5a18055 commit 83b3475

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

esp32_camera_mjpeg.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ void handle_jpg(void)
8484
{
8585
WiFiClient client = server.client();
8686

87-
cam.run();
8887
if (!client.connected()) return;
89-
88+
cam.run();
9089
client.write(JHEADER, jhdLen);
9190
client.write((char *)cam.getfb(), cam.getSize());
9291
}

0 commit comments

Comments
 (0)