decreased flush limit, show received data (debug)

This commit is contained in:
Martin Preuss
2026-07-05 20:07:34 +02:00
parent 23cb3e62dc
commit d4428128cb

View File

@@ -14,6 +14,7 @@
#include <aqhome/events2/fdobject.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
#include <fcntl.h>
#include <errno.h>
@@ -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) {