Fix zStackEraseAllNvMem.js (#8692)

* Fix zStackEraseAllNvMem.js

* lint fix
This commit is contained in:
Pavel Sokolov
2021-09-08 19:46:10 +03:00
committed by GitHub
parent d140d2b4b2
commit cadcdc3525
+2 -2
View File
@@ -64,11 +64,11 @@ class ZStackNvMemEraser {
if (needOsal) {
await this.znp.request(Subsystem.SYS, 'osalNvDelete',
{id: id, len: len},
null, [ZnpCommandStatus.SUCCESS, ZnpCommandStatus.NV_ITEM_INITIALIZED]);
null, null, [ZnpCommandStatus.SUCCESS, ZnpCommandStatus.NV_ITEM_INITIALIZED]);
} else {
await this.znp.request(Subsystem.SYS, 'nvDelete',
{sysid: NvSystemIds.ZSTACK, itemid: id, subid: 0},
null, [ZnpCommandStatus.SUCCESS, ZnpCommandStatus.NV_ITEM_INITIALIZED]);
null, null, [ZnpCommandStatus.SUCCESS, ZnpCommandStatus.NV_ITEM_INITIALIZED]);
}
deletedCount++;
}