mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
Update support.ino
This commit is contained in:
parent
09bb1ecb8e
commit
25a660bdec
@ -1930,8 +1930,11 @@ void SyslogAsync(void) {
|
|||||||
char* line;
|
char* line;
|
||||||
size_t len;
|
size_t len;
|
||||||
while (GetLog(TasmotaGlobal.syslog_level, &index, &line, &len)) {
|
while (GetLog(TasmotaGlobal.syslog_level, &index, &line, &len)) {
|
||||||
if (len > 13) {
|
// 00:00:00.110 Project tasmota Wemos5 Version 9.2.0.1(theo)-2_7_4_9(2020-12-20T17:09:26)
|
||||||
strlcpy(TasmotaGlobal.log_data, line +13, len -13); // Skip mxtime
|
// Project tasmota Wemos5 Version 9.2.0.1(theo)-2_7_4_9(2020-12-20T17:09:26)
|
||||||
|
uint32_t mxtime = strchr(line, ' ') - line +1; // Remove mxtime
|
||||||
|
if (mxtime > 0) {
|
||||||
|
strlcpy(TasmotaGlobal.log_data, line +mxtime, len -mxtime);
|
||||||
Syslog();
|
Syslog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user