File tree 3 files changed +11
-2
lines changed
libraries/HTTPUpdateServer/examples/WebUpdater
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#ifdef CONFIG_BT_ENABLED
18
18
19
+ #if CONFIG_IDF_TARGET_ESP32
20
+ bool btInUse (){ return true; }
21
+ #else
19
22
// user may want to change it to free resources
20
23
__attribute__((weak )) bool btInUse (){ return true; }
24
+ #endif
21
25
22
26
#include "esp_bt.h"
23
27
Original file line number Diff line number Diff line change @@ -209,9 +209,15 @@ bool verifyRollbackLater() { return false; }
209
209
#endif
210
210
211
211
#ifdef CONFIG_BT_ENABLED
212
+ #if CONFIG_IDF_TARGET_ESP32
213
+ //overwritten in esp32-hal-bt.c
214
+ bool btInUse () __attribute__((weak ));
215
+ bool btInUse (){ return false; }
216
+ #else
212
217
//from esp32-hal-bt.c
213
218
extern bool btInUse ();
214
219
#endif
220
+ #endif
215
221
216
222
void initArduino ()
217
223
{
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ void setup(void) {
33
33
Serial.println (" WiFi failed, retrying." );
34
34
}
35
35
36
- MDNS.begin (host);
37
- if (MDNS.begin (" esp32" )) {
36
+ if (MDNS.begin (host)) {
38
37
Serial.println (" mDNS responder started" );
39
38
}
40
39
You can’t perform that action at this time.
0 commit comments