Skip to content

Commit

Permalink
Fixed firmware update of Nth chip
Browse files Browse the repository at this point in the history
  • Loading branch information
PoltoS committed Jun 12, 2023
1 parent ceeac7f commit 932346e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ZWave/index.js
Expand Up @@ -2364,7 +2364,7 @@ ZWave.prototype.defineHandlers = function() {

var manufacturerId = fwUpdate.data.manufacturerId.value;
var targetId = parseInt(data.targetId);
var firmwareId = targetId == 0 ? fwUpdate.data.firmwareId.value : fwUpdate.data["firmware" + targetId].value;
var firmwareId = targetId == 0 ? fwUpdate.data.firmwareId.value : fwUpdate.data["firmwareId" + targetId].value;

if (!manufacturerId && manufacturerId !== 0 || !firmwareId && firmwareId !== 0) {
throw "Either manufacturer or firmware id is not present";
Expand Down

0 comments on commit 932346e

Please sign in to comment.