Commit 330a85f78e4027507116264321ea88685a0d2a5b
Merge branch 'fix/device-code-range' into 'main_dev'
fix: 修复生成modbus指令错误 See merge request yunteng/thingskit-scada!100
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | ... | @@ -16249,7 +16249,7 @@ class HandleDataInteraction { | 
| 16249 | 16249 | |
| 16250 | 16250 | if (method == '16') { | 
| 16251 | 16251 | const hexValue = UseLayUi.numberToHex(value).split(' ') | 
| 16252 | - value = [parseInt(hexValue.slice(0, 2), 16), parseInt(hexValue.slice(2, 4), 16)] | |
| 16252 | + value = [parseInt(hexValue.slice(0, 2).join(''), 16), parseInt(hexValue.slice(2, 4).join(''), 16)] | |
| 16253 | 16253 | } | 
| 16254 | 16254 | |
| 16255 | 16255 | if (validate.begin()) flag = true | ... | ... |