We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d3eb65 commit 1606fb5Copy full SHA for 1606fb5
1 file changed
src/NimBLEScan.cpp
@@ -39,8 +39,10 @@ NimBLEScan::NimBLEScan()
39
.limited = 0, // no limited scan
40
.passive = 1, // no scan response
41
.filter_duplicates = 1, // filter duplicates
42
-# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2)
43
- .disable_observer_mode = 0, // observer role enabled
+# if defined(ESP_PLATFORM) && !defined(CONFIG_USING_NIMBLE_COMPONENT)
+# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2)
44
+ .disable_observer_mode = 0,
45
+# endif
46
# endif
47
},
48
m_pTaskData{nullptr},
0 commit comments