From d4428128cb1e6e947b6283c69e6bd5804ce74657 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sun, 5 Jul 2026 20:07:34 +0200 Subject: [PATCH] decreased flush limit, show received data (debug) --- aqhome/ipc2/tty_object.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {