- Changed return; to return ESP_FAIL; to match esp_err_t return type

- Prevent build errors by properly handling missing wired mode configuration
This commit is contained in:
PhosphorosVR
2025-08-09 20:42:36 +02:00
parent 46f91124fe
commit 4c2e183f11
5 changed files with 15 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ esp_err_t UVCStreamManager::setup()
#ifndef CONFIG_GENERAL_WIRED_MODE
ESP_LOGE(UVC_STREAM_TAG, "The board does not support UVC, please, setup WiFi connection.");
return;
return ESP_FAIL;
#endif
ESP_LOGI(UVC_STREAM_TAG, "Setting up UVC Stream");