diff --git a/cube/User/Src/logger.c b/cube/User/Src/logger.c index ff8c338..261806a 100644 --- a/cube/User/Src/logger.c +++ b/cube/User/Src/logger.c @@ -86,6 +86,9 @@ void syslog(char *msg) { state = 0; break; } + state = 2; + // no break + case 2: res32 = sendto(SYSLOG_SOCK, (uint8_t*)msg, strlen(msg), syslogAddr, 514); if (res32 != strlen(msg)) { disconnect(SYSLOG_SOCK);