From e657a8705252e0d41f045232852ccce09aede816 Mon Sep 17 00:00:00 2001 From: Zixun LI Date: Mon, 29 Jun 2026 14:58:32 +0200 Subject: Fix merged example Sonar warnings --- examples/host/cdc_msc_hid/src/main.c | 4 ++-- examples/host/msc_file_explorer/src/main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/host') diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c index c2685e847..3ed5883a2 100644 --- a/examples/host/cdc_msc_hid/src/main.c +++ b/examples/host/cdc_msc_hid/src/main.c @@ -87,6 +87,8 @@ int main(void) { #ifndef ESP_PLATFORM vTaskStartScheduler(); #endif + + return 0; #else // init host stack on configured roothub port tusb_rhport_init_t host_init = { @@ -112,8 +114,6 @@ int main(void) { hid_app_task(); } #endif - - return 0; } #ifdef ESP_PLATFORM diff --git a/examples/host/msc_file_explorer/src/main.c b/examples/host/msc_file_explorer/src/main.c index 58b51761b..d1002bbee 100644 --- a/examples/host/msc_file_explorer/src/main.c +++ b/examples/host/msc_file_explorer/src/main.c @@ -87,6 +87,8 @@ int main(void) { #ifndef ESP_PLATFORM vTaskStartScheduler(); #endif + + return 0; #else // init host stack on configured roothub port tusb_rhport_init_t host_init = { @@ -107,8 +109,6 @@ int main(void) { led_blinking_task(); } #endif - - return 0; } #ifdef ESP_PLATFORM -- cgit v1.3.1