Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
fix panID herdsman option (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Sep 27, 2019
1 parent 56af8e0 commit 8588311
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nodes/shepherd.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ module.exports = function (RED) {
precfgkey = bytes.map(t => parseInt(t, 16));
}

let panId = 0xFFFF;
let panID = 0xFFFF;
if (this.credentials.panId) {
panId = parseInt(this.credentials.panId, 16);
panID = parseInt(this.credentials.panId, 16);
}

this.herdsmanOptions = {
Expand All @@ -339,7 +339,7 @@ module.exports = function (RED) {
rtscts: Boolean(config.rtscts)
},
network: {
panId,
panID,
networkKey: precfgkey,
channelList: config.channelList
},
Expand Down

0 comments on commit 8588311

Please sign in to comment.