From 016e91d36761d9d2ecce186b8b36633723d33ef1 Mon Sep 17 00:00:00 2001 From: Elliott Liggett Date: Thu, 10 Jan 2019 12:31:04 -0800 Subject: [PATCH] pseudo-terminal speed increase. Added E1 and E0 return procesing to rigcommander. Added gitignore file. --- .gitignore | 1 + commhandler.cpp | 5 +++-- rigcommander.cpp | 7 +++++-- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..75c107b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pro.user diff --git a/commhandler.cpp b/commhandler.cpp index 560c9f8..9fb4e67 100644 --- a/commhandler.cpp +++ b/commhandler.cpp @@ -165,10 +165,11 @@ void commHandler::receiveDataInPt() // We received data from the pseudo-term. // qDebug() << "Sending data from pseudo-terminal to radio"; // Send this data to the radio: - QByteArray ptdata = pseudoterm->readAll(); + //QByteArray ptdata = pseudoterm->readAll(); // should check the data and rollback // for now though... - sendDataOut(ptdata); + //sendDataOut(ptdata); + sendDataOut(pseudoterm->readAll()); } void commHandler::receiveDataIn() diff --git a/rigcommander.cpp b/rigcommander.cpp index 9122a0c..9077d06 100644 --- a/rigcommander.cpp +++ b/rigcommander.cpp @@ -451,6 +451,7 @@ void rigCommander::parseData(QByteArray dataInput) // break; // case '\xE0': + case (char)0xE0: case (char)compCivAddr: // data is a reply to some query we sent // extract the payload out and parse. @@ -555,8 +556,10 @@ void rigCommander::parseCommand() break; default: - qDebug() << "Have other data with cmd: " << std::hex << payloadIn[00]; - printHex(payloadIn, false, true); + // This gets hit a lot when the pseudo-term is + // using commands wfview doesn't know yet. + // qDebug() << "Have other data with cmd: " << std::hex << payloadIn[00]; + // printHex(payloadIn, false, true); break; } // is any payload left?