Skip to content

Commit 1c8fa56

Browse files
committed
Merge remote-tracking branch 'origin/dev'
2 parents 8f1b8e9 + 5d635bc commit 1c8fa56

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

omodscan/formmodsca.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,9 @@ void FormModSca::beginUpdate()
627627

628628
const auto dd = displayDefinition();
629629
const auto addr = dd.PointAddress - (dd.ZeroBasedAddress ? 0 : 1);
630-
if(addr + dd.Length <= ModbusLimits::addressRange(dd.ZeroBasedAddress).to())
630+
if(addr + dd.Length <= ModbusLimits::addressRange(dd.ZeroBasedAddress).to()) {
631631
_modbusClient.sendReadRequest(dd.PointType, addr, dd.Length, dd.DeviceId, _formId);
632+
}
632633
else
633634
ui->outputWidget->setStatus(tr("No Scan: Invalid Data Length Specified"));
634635

@@ -794,7 +795,7 @@ void FormModSca::on_modbusConnected(const ConnectionDetails&)
794795
ui->outputWidget->setProtocol(protocol);
795796
ui->outputWidget->clearLogView();
796797

797-
beginUpdate();
798+
setPollState(PollState::Running);
798799
}
799800

800801
///

omodscan/translations/omodscan_cn.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,12 +1678,12 @@ Valid Slave Responses: %2</source>
16781678
有效的从站响应:%2</translation>
16791679
</message>
16801680
<message>
1681-
<location filename="../formmodsca.cpp" line="633"/>
1681+
<location filename="../formmodsca.cpp" line="634"/>
16821682
<source>No Scan: Invalid Data Length Specified</source>
16831683
<translation>指定的数据长度无效</translation>
16841684
</message>
16851685
<message>
1686-
<location filename="../formmodsca.cpp" line="806"/>
1686+
<location filename="../formmodsca.cpp" line="807"/>
16871687
<source>Device NOT CONNECTED!</source>
16881688
<translation>设备未连接!</translation>
16891689
</message>
@@ -1693,7 +1693,7 @@ Valid Slave Responses: %2</source>
16931693
<translation>设备未响应</translation>
16941694
</message>
16951695
<message>
1696-
<location filename="../formmodsca.cpp" line="760"/>
1696+
<location filename="../formmodsca.cpp" line="761"/>
16971697
<source>Received Invalid Response MODBUS Query</source>
16981698
<translation>接收到无效的 MODBUS 请求响应</translation>
16991699
</message>

omodscan/translations/omodscan_ru.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,12 +1666,12 @@ Valid Slave Responses: %2</source>
16661666
Корректных ответов устройства: %2</translation>
16671667
</message>
16681668
<message>
1669-
<location filename="../formmodsca.cpp" line="633"/>
1669+
<location filename="../formmodsca.cpp" line="634"/>
16701670
<source>No Scan: Invalid Data Length Specified</source>
16711671
<translation>Нет опроса: указана недопустимая длина данных</translation>
16721672
</message>
16731673
<message>
1674-
<location filename="../formmodsca.cpp" line="806"/>
1674+
<location filename="../formmodsca.cpp" line="807"/>
16751675
<source>Device NOT CONNECTED!</source>
16761676
<translation>Устройство НЕ ПОДКЛЮЧЕНО!</translation>
16771677
</message>
@@ -1681,7 +1681,7 @@ Valid Slave Responses: %2</source>
16811681
<translation>Нет ответа от устройства</translation>
16821682
</message>
16831683
<message>
1684-
<location filename="../formmodsca.cpp" line="760"/>
1684+
<location filename="../formmodsca.cpp" line="761"/>
16851685
<source>Received Invalid Response MODBUS Query</source>
16861686
<translation>Получен некорректный ответ на запрос MODBUS</translation>
16871687
</message>

omodscan/translations/omodscan_zh.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,12 +1677,12 @@ Valid Slave Responses: %2</source>
16771677
有效的從站回應:%2</translation>
16781678
</message>
16791679
<message>
1680-
<location filename="../formmodsca.cpp" line="633"/>
1680+
<location filename="../formmodsca.cpp" line="634"/>
16811681
<source>No Scan: Invalid Data Length Specified</source>
16821682
<translation>沒有掃描:指定的數據長度無效</translation>
16831683
</message>
16841684
<message>
1685-
<location filename="../formmodsca.cpp" line="806"/>
1685+
<location filename="../formmodsca.cpp" line="807"/>
16861686
<source>Device NOT CONNECTED!</source>
16871687
<translation>裝置未連繫!</translation>
16881688
</message>
@@ -1692,7 +1692,7 @@ Valid Slave Responses: %2</source>
16921692
<translation>從裝置未回應</translation>
16931693
</message>
16941694
<message>
1695-
<location filename="../formmodsca.cpp" line="760"/>
1695+
<location filename="../formmodsca.cpp" line="761"/>
16961696
<source>Received Invalid Response MODBUS Query</source>
16971697
<translation>接收到無效的 MODBUS 要求回應</translation>
16981698
</message>

0 commit comments

Comments
 (0)