mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2026-01-27 09:12:18 +01:00
minor fixes in ESP32/ESP8266 code diffs
This commit is contained in:
committed by
Mathieu Carbou
parent
4240b337d5
commit
e4d9cf2d3f
@@ -838,7 +838,8 @@ void AsyncWebSocket::text(uint32_t id, const char* message) {
|
||||
void AsyncWebSocket::text(uint32_t id, const String& message) {
|
||||
text(id, message.c_str(), message.length());
|
||||
}
|
||||
#ifndef ESP32
|
||||
|
||||
#ifndef ESP8266
|
||||
void AsyncWebSocket::text(uint32_t id, const __FlashStringHelper* data) {
|
||||
PGM_P p = reinterpret_cast<PGM_P>(data);
|
||||
|
||||
@@ -857,7 +858,8 @@ void AsyncWebSocket::text(uint32_t id, const __FlashStringHelper* data) {
|
||||
free(message);
|
||||
}
|
||||
}
|
||||
#endif // ESP32
|
||||
#endif // ESP8266
|
||||
|
||||
void AsyncWebSocket::text(uint32_t id, AsyncWebSocketMessageBuffer* buffer) {
|
||||
if (buffer) {
|
||||
text(id, std::move(buffer->_buffer));
|
||||
|
||||
Reference in New Issue
Block a user