diff --git a/ubxtool.cc b/ubxtool.cc index a1d69cb..8620ef3 100644 --- a/ubxtool.cc +++ b/ubxtool.cc @@ -41,6 +41,7 @@ static char program[]="ubxtool"; bool doDEBUG{false}; bool doLOGFILE{false}; bool doVERSION{false}; +bool doSILENT{false}; struct timespec g_gnssutc; uint16_t g_galwn; @@ -239,7 +240,7 @@ UBXMessage sendAndWaitForUBX(int fd, int seconds, basic_string_view msg catch(...) { if(n==1) throw; - cerr<<"Retransmit"< ms catch(...) { if(n==1) throw; - cerr<<"Retransmit"< 30) { - cerr<(s)<<","<(s)<<"@"<(s)<<" "; + if (!doSILENT) { + cerr<(s)<<","<(s)<<"@"<(s)<<" "; + } + cerr<