Skip to content

Commit 0f55c19

Browse files
committed
Fix compilation for esp8266
1 parent 00ed692 commit 0f55c19

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

esp3d/src/core/commands/ESP420.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
#if defined(AUTHENTICATION_FEATURE)
8282
#include "../../modules/authentication/authentication_service.h"
8383
#endif // AUTHENTICATION_FEATURE
84-
#if defined(SSDP_FEATURE)
84+
#if defined(SSDP_FEATURE) && defined(ARDUINO_ARCH_ESP32)
8585
#include <ESP32SSDP.h>
8686
#endif // SSDP_FEATURE
8787
#if defined(MDNS_FEATURE)
@@ -312,7 +312,12 @@ void ESP3DCommands::ESP420(int cmd_params_pos, ESP3DMessage* msg) {
312312
}
313313
#if defined (SSDP_FEATURE)
314314
// SSDP enabled
315+
#if defined(ARDUINO_ARCH_ESP32)
315316
tmpstr = SSDP.started() ? "ON (" + String(SSDP.localIP().toString()) + ")" : "OFF";
317+
#endif // ARDUINO_ARCH_ESP32
318+
#if defined(ARDUINO_ARCH_ESP8266)
319+
tmpstr = "ON" ;
320+
#endif // ARDUINO_ARCH_ESP8266
316321
if (!dispatchIdValue(json, "SSDP", tmpstr.c_str(), target, requestId, false)) {
317322
return;
318323
}

esp3d/src/include/esp3d_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define _VERSION_ESP3D_H
2323

2424
// version and sources location
25-
#define FW_VERSION "3.0.0.a247"
25+
#define FW_VERSION "3.0.0.a248"
2626
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
2727

2828
#endif //_VERSION_ESP3D_H

info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "3.0.0.a247"
2+
"version": "3.0.0.a248"
33
}

0 commit comments

Comments
 (0)