Commit 8ddff7795cd18f7d8343b0fd3259339609920a83
Merge branch 'fix/device-code-range' into 'main_dev'
fix: 修复设备地址码取值范围 See merge request yunteng/thingskit-scada!97
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -16299,8 +16299,8 @@ class HandleDataInteraction { | @@ -16299,8 +16299,8 @@ class HandleDataInteraction { | ||
16299 | const { additional } = dataSource || {} | 16299 | const { additional } = dataSource || {} |
16300 | const { method, deviceCode, registerAddress } = additional || {} | 16300 | const { method, deviceCode, registerAddress } = additional || {} |
16301 | 16301 | ||
16302 | - if (Number(deviceCode) > 27 || Number(deviceCode) < 1) { | ||
16303 | - UseLayUi.topErrorMsg('设备地址码范围不在1~27之间') | 16302 | + if (Number(deviceCode) > 247 || Number(deviceCode) < 1) { |
16303 | + UseLayUi.topErrorMsg('设备地址码范围不在1~247之间') | ||
16304 | return | 16304 | return |
16305 | } | 16305 | } |
16306 | 16306 |