led green blinking on network status
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user