mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-09-30 00:00:56 +02:00
snprintf => concat
This commit is contained in:
@@ -46,9 +46,7 @@ static String generateEventMessage(const char* message, const char* event, uint3
|
|||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
str += T_id__;
|
str += T_id__;
|
||||||
char buff[16];
|
str += id;
|
||||||
snprintf ( buff, 16, "%u", id );
|
|
||||||
str += buff;
|
|
||||||
str += (char)0xa; // '\n'
|
str += (char)0xa; // '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user