This commit is contained in:
cheney
2023-08-09 13:57:49 +08:00
parent 300afb65e0
commit dd6405ff4d
111 changed files with 23270 additions and 556 deletions
+19 -1
View File
@@ -366,12 +366,30 @@
}
var path2 = $("#path2").val();
check(path2, /^([A-Fa-f0-9][A-Fa-f0-9]){16}$/g, "特征字串填充错误")
check(path2, /^([A-Fa-f0-9][A-Fa-f0-9]){4}$/g, "特征字串2填充错误")
var path3 = $("#path3").val();
check(path3, /^([A-Fa-f0-9][A-Fa-f0-9]){16}$/g, "特征字串3填充错误")
var path4 = $("#path4").val();
check(path4, /^([A-Fa-f0-9][A-Fa-f0-9]){4}$/g, "特征字串4填充错误")
var path5 = $("#path5").val();
check(path5, /^([A-Fa-f0-9][A-Fa-f0-9]){16}$/g, "特征字串5填充错误")
ic.writeHex(0x20, path1)
.then(function (def){
return ic.writeHex(0x30, path2)
})
.then(function (def){
return ic.writeHex(0x40, path3)
})
.then(function (def){
return ic.writeHex(0x50, path4)
})
.then(function (def){
return ic.writeHex(0x60, path5)
})
.then(function (def){
success("写入成功")
})