Showing
1 changed file
with
2 additions
and
2 deletions
| ... | ... | @@ -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 | ... | ... |