Browse Source

NAVTEX: Flush CSV after each message

I'd like to watch for Navtex messages in an external application, though the file is only flushed whenever I restart SDRAngel or change the CSV writing settings. I'd like it to write out after each message so that I can continuously watch for new messages.

As such, I've added a flush after writing a message to the log file. This is not a huge burden on the filesystem as messages typically take around a minute to be received, and no less than 10 seconds.
chirpmodem-v8.0.0
Rolf van Kleef 9 months ago committed by GitHub
parent
commit
a112775ee2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      plugins/channelrx/demodnavtex/navtexdemod.cpp

1
plugins/channelrx/demodnavtex/navtexdemod.cpp

@ -217,6 +217,7 @@ bool NavtexDemod::handleMessage(const Message& cmd) @@ -217,6 +217,7 @@ bool NavtexDemod::handleMessage(const Message& cmd)
<< report.getErrors() << ","
<< report.getRSSI()
<< "\n";
m_logStream.flush();
}
}

Loading…
Cancel
Save