1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00

Add ERC-M controller support in GS-232 Controller

This commit is contained in:
Jon Beniston 2021-03-01 16:03:10 +00:00
parent ce69c06586
commit 30a8dd00ea

View File

@ -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()
}
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)));
}