Browse Source

Add ERC-M controller support in GS-232 Controller

chirpmodem-v8.0.0
Jon Beniston 6 years ago
parent
commit
30a8dd00ea
  1. 4
      plugins/feature/gs232controller/gs232controllerworker.cpp

4
plugins/feature/gs232controller/gs232controllerworker.cpp

@ -197,7 +197,7 @@ void GS232ControllerWorker::readSerialData() @@ -197,7 +197,7 @@ void GS232ControllerWorker::readSerialData()
if (len != -1)
{
QString response = QString::fromUtf8(buf, len);
QRegularExpression re("AZ=(\\d\\d\\d)EL=(\\d\\d\\d)");
QRegularExpression re("AZ=(\\d\\d\\d) *EL=(\\d\\d\\d)");
QRegularExpressionMatch match = re.match(response);
if (match.hasMatch())
{
@ -213,7 +213,7 @@ void GS232ControllerWorker::readSerialData() @@ -213,7 +213,7 @@ void GS232ControllerWorker::readSerialData()
}
else
{
qDebug() << "GS232ControllerWorker::readSerialData - unexpected response " << response;
qDebug() << "GS232ControllerWorker::readSerialData - unexpected response \"" << response << "\"";
if (m_msgQueueToFeature)
m_msgQueueToFeature->push(GS232Controller::MsgReportWorker::create(QString("Unexpected GS-232 serial response: %1").arg(response)));
}

Loading…
Cancel
Save