Fix a bug causing exception if the camera did not initialise

pull/145/head
me-no-dev 2020-06-03 23:01:10 +03:00
parent 6b9c442bbf
commit 91a529704f
1 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,9 @@ void app_mdns_main()
xSemaphoreGive(query_lock);
sensor_t * s = esp_camera_sensor_get();
if(s == NULL){
return;
}
switch(s->id.PID){
case OV2640_PID: model = "OV2640"; break;
case OV3660_PID: model = "OV3660"; break;