mirror of https://github.com/lumapu/ahoy.git
Browse Source
* fix nullptr exception * modified MqTT to not publish while not connected * removed patch for Webserver library - obsoletepull/1759/head
lumapu
4 months ago
6 changed files with 9 additions and 30 deletions
@ -1,26 +0,0 @@ |
|||
diff --git a/src/AsyncWebSocket.cpp b/src/AsyncWebSocket.cpp |
|||
index 88d88ec..cb06fe0 100644
|
|||
--- a/src/AsyncWebSocket.cpp
|
|||
+++ b/src/AsyncWebSocket.cpp
|
|||
@@ -745,7 +745,7 @@ void AsyncWebSocketClient::binary(const __FlashStringHelper* data, size_t len) {
|
|||
|
|||
IPAddress AsyncWebSocketClient::remoteIP() const { |
|||
if (!_client) |
|||
- return IPAddress((uint32_t)0U);
|
|||
+ return IPAddress();
|
|||
|
|||
return _client->remoteIP(); |
|||
} |
|||
diff --git a/src/WebResponses.cpp b/src/WebResponses.cpp
|
|||
index 86aa947..9d0ee00 100644
|
|||
--- a/src/WebResponses.cpp
|
|||
+++ b/src/WebResponses.cpp
|
|||
@@ -447,7 +447,7 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest* request, size_t len, u
|
|||
free(buf); |
|||
return 0; |
|||
} |
|||
- outLen = sprintf_P((char*)buf + headLen, PSTR("%x"), readLen) + headLen;
|
|||
+ outLen = sprintf_P((char*)buf + headLen, PSTR("%04x"), readLen) + headLen;
|
|||
while (outLen < headLen + 4) |
|||
buf[outLen++] = ' '; |
|||
buf[outLen++] = '\r'; |
Loading…
Reference in new issue