- 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

@@ -90,13 +90,21 @@ void start_video_streaming(void *arg) {
ESP_LOGI("[MAIN]", "WiFi setup detected, starting WiFi streaming.");
streamServer.startStreamServer();
} else {
#ifdef CONFIG_GENERAL_WIRED_MODE
ESP_LOGI("[MAIN]", "UVC setup detected, starting UVC streaming.");
uvcStream.setup();
#else
ESP_LOGW("[MAIN]", "UVC streaming not supported in this configuration.");
#endif
}
break;
case StreamingMode::UVC:
#ifdef CONFIG_GENERAL_WIRED_MODE
ESP_LOGI("[MAIN]", "Device set to UVC Mode, starting UVC streaming.");
uvcStream.setup();
#else
ESP_LOGW("[MAIN]", "UVC streaming not supported in this configuration.");
#endif
break;
case StreamingMode::WIFI:
ESP_LOGI("[MAIN]", "Device set to Wi-Fi mode, starting WiFi streaming.");