Commit abc148258b7d7784b33fbb81222300da285ca67d
Merge branch 'perf/tcp-device-gen-modbus-command' into 'main_dev'
feat: 参数设置新增modbus指令下发选项 See merge request yunteng/thingskit-scada!90
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -16280,7 +16280,7 @@ class HandleDataInteraction { | @@ -16280,7 +16280,7 @@ class HandleDataInteraction { | ||
16280 | const { additional } = dataSource || {} | 16280 | const { additional } = dataSource || {} |
16281 | const { method, deviceCode, registerAddress } = additional || {} | 16281 | const { method, deviceCode, registerAddress } = additional || {} |
16282 | 16282 | ||
16283 | - if (Number(deviceCode) > parseInt('ff', 16) || Number(deviceCode) <= 1) { | 16283 | + if (Number(deviceCode) > parseInt('ff', 16) || Number(deviceCode) < 1) { |
16284 | UseLayUi.topErrorMsg('设备地址码范围不在1~255之间') | 16284 | UseLayUi.topErrorMsg('设备地址码范围不在1~255之间') |
16285 | return | 16285 | return |
16286 | } | 16286 | } |