Fix incomplete syslog

Fix incomplete syslog when MQTT is disabled (#5512)
This commit is contained in:
Theo Arends 2019-03-23 12:41:35 +01:00
parent 878205335f
commit 76b7d778ec
1 changed files with 1 additions and 0 deletions

View File

@ -1221,6 +1221,7 @@ void Syslog(void)
memcpy(log_data, syslog_preamble, strlen(syslog_preamble));
PortUdp.write(log_data);
PortUdp.endPacket();
delay(1); // Add time for UDP handling (#5512)
} else {
syslog_level = 0;
syslog_timer = SYSLOG_TIMER;