diff --git a/aqhome/ipc2/tty_object.c b/aqhome/ipc2/tty_object.c index c79fa08..4eaa392 100644 --- a/aqhome/ipc2/tty_object.c +++ b/aqhome/ipc2/tty_object.c @@ -14,6 +14,7 @@ #include #include +#include #include #include @@ -24,7 +25,7 @@ #define AQH_TTYOBJECT_BAUDRATE B19200 -#define AQH_TTYOBJECT_FLUSH_LIMIT 1000 +#define AQH_TTYOBJECT_FLUSH_LIMIT 500 #define AQH_TTYOBJECT_FLUSH_QUIET_TIME_MS 200 @@ -157,6 +158,7 @@ int _cbFlush(AQH_OBJECT *o) } else { DBG_ERROR(AQH_LOGDOMAIN, "Flushed %d bytes [%d]", rv, i); + GWEN_Text_LogString((const char*)buffer, rv, AQH_LOGDOMAIN, GWEN_LoggerLevel_Error); } } if (i>=AQH_TTYOBJECT_FLUSH_LIMIT) {