We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bab316 commit af76716Copy full SHA for af76716
lib/bvlc.js
@@ -62,7 +62,7 @@ module.exports.decode = (buffer, offset) => {
62
originatingIP = buffer.slice(4, 8).join('.');
63
64
// Only add the port if it's not the usual one.
65
- if (port != DefaultBACnetPort) {
+ if (port !== DefaultBACnetPort) {
66
originatingIP += ':' + port;
67
}
68
lib/npdu.js
@@ -2,7 +2,7 @@
2
3
const baEnum = require('./enum');
4
5
-const DEFAULT_HOP_COUNT = 255;
+const DEFAULT_HOP_COUNT = 0xFF;
6
const BACNET_PROTOCOL_VERSION = 1;
7
const BacnetAddressTypes = {
8
NONE: 0,
0 commit comments