Commit 346a040cc50857267ce3368cd1d327a81981b10e
Merge branch 'fix/device-code-range' into 'main_dev'
Fix/device code range See merge request yunteng/thingskit-scada!95
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -16292,8 +16292,8 @@ class HandleDataInteraction { | @@ -16292,8 +16292,8 @@ class HandleDataInteraction { | ||
16292 | const { additional } = dataSource || {} | 16292 | const { additional } = dataSource || {} |
16293 | const { method, deviceCode, registerAddress } = additional || {} | 16293 | const { method, deviceCode, registerAddress } = additional || {} |
16294 | 16294 | ||
16295 | - if (Number(deviceCode) > parseInt('ff', 16) || Number(deviceCode) < 1) { | ||
16296 | - UseLayUi.topErrorMsg('设备地址码范围不在1~255之间') | 16295 | + if (Number(deviceCode) > 27 || Number(deviceCode) < 1) { |
16296 | + UseLayUi.topErrorMsg('设备地址码范围不在1~27之间') | ||
16297 | return | 16297 | return |
16298 | } | 16298 | } |
16299 | 16299 |