mirror of
https://github.com/esphome/esphome.git
synced 2025-10-16 08:43:45 +01:00
missed python
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#include <pgmspace.h>
|
||||
// Macro to define strings in PROGMEM on ESP8266, regular memory on other platforms
|
||||
#define MDNS_STATIC_CONST_CHAR(name, value) static const char name[] PROGMEM = value
|
||||
#define MDNS_STR(name) (reinterpret_cast<const MDNSString *>(name))
|
||||
// Helper to convert PROGMEM string to std::string for TemplatableValue
|
||||
// Only define this function if we have services that will use it
|
||||
#if defined(USE_API) || defined(USE_PROMETHEUS) || defined(USE_WEBSERVER) || defined(USE_MDNS_EXTRA_SERVICES)
|
||||
@@ -24,7 +23,6 @@ static std::string mdns_str_value(PGM_P str) {
|
||||
#else
|
||||
// On non-ESP8266 platforms, use regular const char*
|
||||
#define MDNS_STATIC_CONST_CHAR(name, value) static constexpr const char name[] = value
|
||||
#define MDNS_STR(name) (reinterpret_cast<const MDNSString *>(name))
|
||||
#define MDNS_STR_VALUE(name) std::string(name)
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user