mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-14 13:15:59 +08:00
Fix compilation for esp8266
This commit is contained in:
parent
00ed69275b
commit
0f55c19a2f
@ -81,7 +81,7 @@
|
||||
#if defined(AUTHENTICATION_FEATURE)
|
||||
#include "../../modules/authentication/authentication_service.h"
|
||||
#endif // AUTHENTICATION_FEATURE
|
||||
#if defined(SSDP_FEATURE)
|
||||
#if defined(SSDP_FEATURE) && defined(ARDUINO_ARCH_ESP32)
|
||||
#include <ESP32SSDP.h>
|
||||
#endif // SSDP_FEATURE
|
||||
#if defined(MDNS_FEATURE)
|
||||
@ -312,7 +312,12 @@ void ESP3DCommands::ESP420(int cmd_params_pos, ESP3DMessage* msg) {
|
||||
}
|
||||
#if defined (SSDP_FEATURE)
|
||||
// SSDP enabled
|
||||
#if defined(ARDUINO_ARCH_ESP32)
|
||||
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)) {
|
||||
return;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define _VERSION_ESP3D_H
|
||||
|
||||
// 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"
|
||||
|
||||
#endif //_VERSION_ESP3D_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user