Skip to content

Commit

Permalink
fix deconz form channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Dec 15, 2024
1 parent 1fea6d1 commit 727bdb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/adapter/deconz/adapter/deconzAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ class DeconzAdapter extends Adapter {
// this path should never be reached
throw new Error('This adapter does not support backup');
} else {
await this.driver.writeParameterRequest(
PARAM.PARAM.Network.CHANNEL_MASK,
ZSpec.Utils.channelsToUInt32Mask(this.networkOptions.channelList),
);
await Wait(500);
await this.driver.writeParameterRequest(PARAM.PARAM.Network.PAN_ID, this.networkOptions.panID);
await Wait(500);
await this.driver.writeParameterRequest(PARAM.PARAM.Network.APS_EXT_PAN_ID, this.networkOptions.extendedPanID!);
Expand Down

0 comments on commit 727bdb6

Please sign in to comment.