Skip to content

Commit 96530ac

Browse files
committed
Correct modbus message rx/tx description
1 parent 6c70cab commit 96530ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/controls/modbusmessagewidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void ModbusMessageWidget::update()
254254
addItem(tr("<span style='color:%1'>*** INVALID MODBUS RESPONSE ***</span>").arg(errColor));
255255
}
256256

257-
const QString dirColor = _mm->isRequest() ? "#0066cc" : "#009933";
257+
const QString dirColor = _mm->isRequest() ? "#009933" : "#0066cc";
258258
auto addField = [&](const QString &name, const QString &value, const QString &clr) {
259259
addItem(QString("<b style='color:#000000'>%1:</b> <span style='color:%2'>%3</span>").arg(name, clr, value));
260260
};
@@ -276,7 +276,7 @@ void ModbusMessageWidget::update()
276276
}
277277
};
278278

279-
addField(tr("Type"), _mm->isRequest() ? tr("Request (Tx)") : tr("Response (Rx)"), dirColor);
279+
addField(tr("Type"), _mm->isRequest() ? tr("Request (Rx)") : tr("Response (Tx)"), dirColor);
280280
if(_showTimestamp) addField(tr("Time"), _mm->timestamp().toString(Qt::ISODateWithMs), dataColor);
281281

282282
if(_mm->protocolType() == ModbusMessage::Tcp)

0 commit comments

Comments
 (0)