Commit 8ddff7795cd18f7d8343b0fd3259339609920a83

Authored by xp.Huang
2 parents d1d9e27a 45904646

Merge branch 'fix/device-code-range' into 'main_dev'

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

See merge request yunteng/thingskit-scada!97
@@ -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