Skip to content

Commit af76716

Browse files
committed
fix(client): Address PR feedback
1 parent 2bab316 commit af76716

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/bvlc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports.decode = (buffer, offset) => {
6262
originatingIP = buffer.slice(4, 8).join('.');
6363

6464
// Only add the port if it's not the usual one.
65-
if (port != DefaultBACnetPort) {
65+
if (port !== DefaultBACnetPort) {
6666
originatingIP += ':' + port;
6767
}
6868

lib/npdu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const baEnum = require('./enum');
44

5-
const DEFAULT_HOP_COUNT = 255;
5+
const DEFAULT_HOP_COUNT = 0xFF;
66
const BACNET_PROTOCOL_VERSION = 1;
77
const BacnetAddressTypes = {
88
NONE: 0,

0 commit comments

Comments
 (0)