Commit 0a032bd34b0dbea2ca669fded3f6a9b4cc21929e

Authored by ww
1 parent 1670f0ea

fix: 修复设备地址码取值范围校验

... ... @@ -16292,8 +16292,8 @@ class HandleDataInteraction {
16292 16292 const { additional } = dataSource || {}
16293 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 16297 return
16298 16298 }
16299 16299
... ...