File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
libraries/HTTPUpdateServer/examples/WebUpdater Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1616
1717#ifdef CONFIG_BT_ENABLED
1818
19+ #if CONFIG_IDF_TARGET_ESP32
20+ bool btInUse (){ return true; }
21+ #else
1922// user may want to change it to free resources
2023__attribute__((weak )) bool btInUse (){ return true; }
24+ #endif
2125
2226#include "esp_bt.h"
2327
Original file line number Diff line number Diff line change @@ -209,9 +209,15 @@ bool verifyRollbackLater() { return false; }
209209#endif
210210
211211#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
212217//from esp32-hal-bt.c
213218extern bool btInUse ();
214219#endif
220+ #endif
215221
216222void initArduino ()
217223{
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ void setup(void) {
3333 Serial.println (" WiFi failed, retrying." );
3434 }
3535
36- MDNS.begin (host);
37- if (MDNS.begin (" esp32" )) {
36+ if (MDNS.begin (host)) {
3837 Serial.println (" mDNS responder started" );
3938 }
4039
You can’t perform that action at this time.
0 commit comments