This commit is contained in:
Wolfgang Hottgenroth 2020-11-17 10:52:49 +01:00
parent 8b37d39f14
commit 6b593988ec
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -45,6 +45,7 @@ void debugTxCpltCallback(UART_HandleTypeDef *huart) {
void syslog(char *msg) {
static uint8_t state = 0;
int8_t res8 = 0;
if (isNetworkAvailable()) {
switch (state) {
case 0:
res8 = socket(SYSLOG_SOCK, Sn_MR_UDP, 514, SF_IO_NONBLOCK);
@ -57,6 +58,7 @@ void syslog(char *msg) {
break;
}
}
}
static void flashGreenLed(void *handle) {
show(LED_GREEN, TOGGLE);