mirror of
https://github.com/Freenove/Freenove_ESP32_WROVER_Board.git
synced 2025-07-29 08:07:50 +00:00
Update app_httpd.cpp
ESP32 support package V1.0.6 based on Arduino.
This commit is contained in:
parent
af93e78431
commit
f4fe03faf0
@ -403,6 +403,9 @@ static esp_err_t stream_handler(httpd_req_t *req){
|
||||
}
|
||||
}
|
||||
}
|
||||
if(res == ESP_OK){
|
||||
res = httpd_resp_send_chunk(req, _STREAM_BOUNDARY, strlen(_STREAM_BOUNDARY));
|
||||
}
|
||||
if(res == ESP_OK){
|
||||
size_t hlen = snprintf((char *)part_buf, 64, _STREAM_PART, _jpg_buf_len);
|
||||
res = httpd_resp_send_chunk(req, (const char *)part_buf, hlen);
|
||||
@ -410,9 +413,6 @@ static esp_err_t stream_handler(httpd_req_t *req){
|
||||
if(res == ESP_OK){
|
||||
res = httpd_resp_send_chunk(req, (const char *)_jpg_buf, _jpg_buf_len);
|
||||
}
|
||||
if(res == ESP_OK){
|
||||
res = httpd_resp_send_chunk(req, _STREAM_BOUNDARY, strlen(_STREAM_BOUNDARY));
|
||||
}
|
||||
if(fb){
|
||||
esp_camera_fb_return(fb);
|
||||
fb = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user