8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2db811f commit 4d3f6caCopy full SHA for 4d3f6ca
libraries/ESPmDNS/src/ESPmDNS.cpp
@@ -43,6 +43,14 @@ License (MIT license):
43
#include <functional>
44
#include "esp_wifi.h"
45
46
+// Add quotes around defined value
47
+#ifdef __IN_ECLIPSE__
48
+#define STR_EXPAND(tok) #tok
49
+#define STR(tok) STR_EXPAND(tok)
50
+#else
51
+#define STR(tok) tok
52
+#endif
53
+
54
static void _on_sys_event(system_event_t *event){
55
mdns_handle_system_event(NULL, event);
56
}
@@ -82,7 +90,7 @@ void MDNSResponder::setInstanceName(String name) {
82
90
83
91
void MDNSResponder::enableArduino(uint16_t port, bool auth){
84
92
mdns_txt_item_t arduTxtData[4] = {
85
- {(char*)"board" ,(char*)ARDUINO_VARIANT},
93
+ {(char*)"board" ,(char*)STR(ARDUINO_VARIANT)},
86
94
{(char*)"tcp_check" ,(char*)"no"},
87
95
{(char*)"ssh_upload" ,(char*)"no"},
88
96
{(char*)"auth_upload" ,(char*)"no"}
0 commit comments