Fix a bug causing exception if the camera did not initialise (#145)

pull/154/head
Me No Dev 2020-06-04 06:04:31 +03:00 committed by GitHub
parent 6b9c442bbf
commit b1f641356d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;