mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-11 16:06:38 +02:00
0.7.35
* fixed timestamp for alarms send over MqTT * auto-patch of `AsyncWebServer` #834, #1036 * Update documentation in Git regarding `ESP8266` default NRF24 pin assignments
This commit is contained in:
parent
ac53925a24
commit
ed268d1b63
7 changed files with 54 additions and 9 deletions
13
patches/AsyncWeb_Prometheus.patch
Normal file
13
patches/AsyncWeb_Prometheus.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/WebResponses.cpp b/src/WebResponses.cpp
|
||||
index 22a549f..e0b36b3 100644
|
||||
--- a/src/WebResponses.cpp
|
||||
+++ b/src/WebResponses.cpp
|
||||
@@ -318,7 +318,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';
|
||||
buf[outLen++] = '\n';
|
Loading…
Add table
Add a link
Reference in a new issue