led green blinking on network status

This commit is contained in:
2020-11-17 15:04:34 +01:00
parent fb04857772
commit eb64cc8dce
5 changed files with 48 additions and 51 deletions

View File

@ -60,10 +60,6 @@ void syslog(char *msg) {
}
}
static void flashGreenLed(void *handle) {
show(LED_GREEN, TOGGLE);
}
static int innerLogMsg(const char *pre, const char *post, bool syslogToo, const char *format, va_list vl) {
const static char SYSLOG_HEADER[] = "<133>1 ";
#define MAX_PREFIX_SIZE 20
@ -99,11 +95,6 @@ static int innerLogMsg(const char *pre, const char *post, bool syslogToo, const
res = ringbufferPut(&logBuffer, (uint8_t*) (bufferStart - preSize), strlen(bufferStart - preSize));
HAL_NVIC_EnableIRQ(UART4_IRQn);
if (-1 == res) {
// blink the green light or so
flashGreenLed(NULL);
schAdd(flashGreenLed, NULL, 100, 0);
}
debugTxCpltCallback(NULL);
}