File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ License (MIT license):
43
43
#include < functional>
44
44
#include " esp_wifi.h"
45
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
+
46
54
static void _on_sys_event (system_event_t *event){
47
55
mdns_handle_system_event (NULL , event);
48
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" }
You can’t perform that action at this time.
0 commit comments