From edfc838bef9749b79012c7cd18ad9ce60d7bf012 Mon Sep 17 00:00:00 2001 From: h2zero Date: Wed, 11 Jun 2025 14:50:17 -0600 Subject: [PATCH] [Bugfix] allow peripheral and central roles without broadcast/scan. --- src/nimconfig.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/nimconfig.h b/src/nimconfig.h index d96e37c..c8f08a6 100644 --- a/src/nimconfig.h +++ b/src/nimconfig.h @@ -15,16 +15,6 @@ // Allows cpp wrapper to select the correct include paths when using esp-idf #define CONFIG_NIMBLE_CPP_IDF -/* Cannot use client without scan */ -#if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL) && !defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER) -#define CONFIG_BT_NIMBLE_ROLE_OBSERVER -#endif - -/* Cannot use server without advertise */ -#if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) && !defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) -#define CONFIG_BT_NIMBLE_ROLE_BROADCASTER -#endif - /* Enables the use of Arduino String class for attribute values */ #if defined __has_include # if __has_include ()