From 0710e0ad81175839390d25116dc0f401b66e7a13 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 5 May 2020 21:40:06 +0200 Subject: [PATCH] tweak what to output in debug mode, add some better stats --- ubxtool.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ubxtool.cc b/ubxtool.cc index fcb1582..3a57a72 100644 --- a/ubxtool.cc +++ b/ubxtool.cc @@ -166,8 +166,10 @@ std::pair getUBXMessage(int fd, double* timeout) marker[0] = marker[1]; int res = readn2Timeout(fd, marker+1, 1, timeout); - if(res < 0) + if(res < 0) { + cerr<<"Readn2Timeout failed: "<