From 20c1e853ca65f6fa33ecfeab24ff26bf5ad3d514 Mon Sep 17 00:00:00 2001 From: h2zero Date: Thu, 7 Nov 2024 10:35:26 -0700 Subject: [PATCH] Exclude building os_msys_init.c when using NimBLE controller. --- src/nimble/porting/nimble/src/os_msys_init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nimble/porting/nimble/src/os_msys_init.c b/src/nimble/porting/nimble/src/os_msys_init.c index 57e62ed5..5a0453d0 100644 --- a/src/nimble/porting/nimble/src/os_msys_init.c +++ b/src/nimble/porting/nimble/src/os_msys_init.c @@ -17,6 +17,9 @@ * under the License. */ +#include "nimconfig.h" +#if !defined(ESP_NIMBLE_CONTROLLER_ENABLED) + #include #include "../include/os/os.h" #include "../include/mem/mem.h" @@ -220,3 +223,4 @@ void os_msys_init(void) SYSINIT_PANIC_ASSERT(rc == 0); #endif } +#endif \ No newline at end of file