Skip to content

Commit 617f68c

Browse files
committed
Flash a bit more
1 parent 6f7b46e commit 617f68c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app_httpd.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ static size_t jpg_encode_stream(void * arg, size_t index, const void* data, size
230230
static esp_err_t capture_handler(httpd_req_t *req){
231231
camera_fb_t * fb = NULL;
232232
esp_err_t res = ESP_OK;
233+
234+
flashLED(75); // little flash of status LED
235+
233236
int64_t fr_start = esp_timer_get_time();
234237

235238
fb = esp_camera_fb_get();
@@ -329,6 +332,8 @@ static esp_err_t stream_handler(httpd_req_t *req){
329332
int64_t fr_recognize = 0;
330333
int64_t fr_encode = 0;
331334

335+
flashLED(75); // little flash of status LED
336+
332337
static int64_t last_frame = 0;
333338
if(!last_frame) {
334339
last_frame = esp_timer_get_time();
@@ -608,6 +613,8 @@ static esp_err_t status_handler(httpd_req_t *req){
608613

609614
static esp_err_t index_handler(httpd_req_t *req){
610615
flashLED(75); // a little feedback to user
616+
delay(75);
617+
flashLED(75);
611618
httpd_resp_set_type(req, "text/html");
612619
httpd_resp_set_hdr(req, "Content-Encoding", "identity");
613620
sensor_t * s = esp_camera_sensor_get();

0 commit comments

Comments
 (0)