add log when app_mdns cannot get camera sensor

pull/245/head
remipch 2023-02-19 07:41:48 +01:00
parent 7563e00b32
commit ed72c1e2fb
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ void app_mdns_main()
sensor_t * s = esp_camera_sensor_get();
if(s == NULL){
ESP_LOGE(TAG, "esp_camera_sensor_get() Failed");
ESP_LOGE(TAG, "(camera must previously be initialized with esp_camera_init() to get sensor properties)");
return;
}
switch(s->id.PID){