Commit 330a85f78e4027507116264321ea88685a0d2a5b

Authored by xp.Huang
2 parents a67e6b94 5e26a2c3

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

fix: 修复生成modbus指令错误

See merge request yunteng/thingskit-scada!100
@@ -16249,7 +16249,7 @@ class HandleDataInteraction { @@ -16249,7 +16249,7 @@ class HandleDataInteraction {
16249 16249
16250 if (method == '16') { 16250 if (method == '16') {
16251 const hexValue = UseLayUi.numberToHex(value).split(' ') 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 if (validate.begin()) flag = true 16255 if (validate.begin()) flag = true