From cf9c74b99e4ffc65c6613308d73999777ffb626e Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Mon, 15 Oct 2018 12:43:49 -0400 Subject: [PATCH] Fixed issue with multiple beacon acks not displaying in rx window --- mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 4f7614f..c218db5 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -8532,7 +8532,11 @@ void MainWindow::processCommandActivity() { c.movePosition(QTextCursor::End); ui->textEditRX->setTextCursor(c); - if(/*isRecentOffset(d.freq) &&*/ ui->textEditRX->find(d.utcTimestamp.time().toString(), QTextDocument::FindBackward)){ + // BEACON ACKs are the most likely source of items to be overwritten (multiple responses at once)... + // so don't overwrite those (i.e., print each on a new line) + bool shouldOverwrite = (d.cmd != "BEACON ACK"); /* && isRecentOffset(d.freq);*/ + + if(shouldOverwrite && ui->textEditRX->find(d.utcTimestamp.time().toString(), QTextDocument::FindBackward)){ // ... maybe we could delete the last line that had this message on this frequency... c = ui->textEditRX->textCursor(); c.movePosition(QTextCursor::StartOfBlock);