Skip to content

Commit

Permalink
fix: computation of SNR margin when noise floor is N/A (#6732)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Apr 8, 2024
1 parent 6625ec8 commit 3c4ddcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/zwave-js/src/lib/node/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5846,7 +5846,10 @@ protocol version: ${this.protocolVersion}`;
&& !isRssiError(txReport.ackRSSI)
) {
// If possible, determine the SNR margin from the report
if (txReport.measuredNoiseFloor != undefined) {
if (
txReport.measuredNoiseFloor != undefined
&& !isRssiError(txReport.measuredNoiseFloor)
) {
const currentSNRMargin = txReport.ackRSSI
- txReport.measuredNoiseFloor;
// And remember it if it's the lowest we've seen so far
Expand Down

0 comments on commit 3c4ddcd

Please sign in to comment.