Fix compilation for esp8266

This commit is contained in:
Luc 2024-12-10 20:27:39 +08:00
parent 00ed69275b
commit 0f55c19a2f
3 changed files with 8 additions and 3 deletions

View File

@ -81,7 +81,7 @@
#if defined(AUTHENTICATION_FEATURE) #if defined(AUTHENTICATION_FEATURE)
#include "../../modules/authentication/authentication_service.h" #include "../../modules/authentication/authentication_service.h"
#endif // AUTHENTICATION_FEATURE #endif // AUTHENTICATION_FEATURE
#if defined(SSDP_FEATURE) #if defined(SSDP_FEATURE) && defined(ARDUINO_ARCH_ESP32)
#include <ESP32SSDP.h> #include <ESP32SSDP.h>
#endif // SSDP_FEATURE #endif // SSDP_FEATURE
#if defined(MDNS_FEATURE) #if defined(MDNS_FEATURE)
@ -312,7 +312,12 @@ void ESP3DCommands::ESP420(int cmd_params_pos, ESP3DMessage* msg) {
} }
#if defined (SSDP_FEATURE) #if defined (SSDP_FEATURE)
// SSDP enabled // SSDP enabled
#if defined(ARDUINO_ARCH_ESP32)
tmpstr = SSDP.started() ? "ON (" + String(SSDP.localIP().toString()) + ")" : "OFF"; tmpstr = SSDP.started() ? "ON (" + String(SSDP.localIP().toString()) + ")" : "OFF";
#endif // ARDUINO_ARCH_ESP32
#if defined(ARDUINO_ARCH_ESP8266)
tmpstr = "ON" ;
#endif // ARDUINO_ARCH_ESP8266
if (!dispatchIdValue(json, "SSDP", tmpstr.c_str(), target, requestId, false)) { if (!dispatchIdValue(json, "SSDP", tmpstr.c_str(), target, requestId, false)) {
return; return;
} }

View File

@ -22,7 +22,7 @@
#define _VERSION_ESP3D_H #define _VERSION_ESP3D_H
// version and sources location // version and sources location
#define FW_VERSION "3.0.0.a247" #define FW_VERSION "3.0.0.a248"
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0" #define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
#endif //_VERSION_ESP3D_H #endif //_VERSION_ESP3D_H

View File

@ -1,3 +1,3 @@
{ {
"version": "3.0.0.a247" "version": "3.0.0.a248"
} }