Skip to content
代码片段 群组 项目
提交 bb3f69bd 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic
浏览文件

Align the importer with the zap loader.

上级 687825e7
No related branches found
No related tags found
无相关合并请求
......@@ -69,7 +69,13 @@ function parseZclCustomizer(state, line) {
async function readIscData(filePath, data) {
const lines = data.toString().split(/\r?\n/)
var parser = null
var state = {}
var state = {
filePath: filePath,
featureLevel: 0,
keyValuePairs: [],
loader: iscDataLoader,
}
lines.forEach((line) => {
if (line == '{setupId:zclAfv2') {
parser = parseZclAfv2Line
......@@ -87,7 +93,7 @@ async function readIscData(filePath, data) {
if (parser != null) parser(state, line)
})
state.loader = iscDataLoader
return state
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册