Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Sep 12, 2024
1 parent 7d4f513 commit a2ff6d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/adapter/z-stack/adapter/adapter-backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,13 @@ export class AdapterBackup {
*/
private async getApsLinkKeyDataTable(version: ZnpVersion): Promise<ReturnType<typeof Structs.apsLinkKeyDataTable>> {
if (version === ZnpVersion.zStack3x0) {
return await this.nv.readTable('extended', NvSystemIds.ZSTACK, NvItemsIds.ZCD_NV_EX_APS_KEY_DATA_TABLE, undefined, Structs.apsLinkKeyDataTable);
return await this.nv.readTable(
'extended',
NvSystemIds.ZSTACK,
NvItemsIds.ZCD_NV_EX_APS_KEY_DATA_TABLE,
undefined,
Structs.apsLinkKeyDataTable,
);
} else {
return await this.nv.readTable('legacy', NvItemsIds.APS_LINK_KEY_DATA_START, 255, Structs.apsLinkKeyDataTable);
}
Expand Down

0 comments on commit a2ff6d9

Please sign in to comment.