Skip to content

Commit 9067830

Browse files
committed
Merge remote-tracking branch 'bing-mao/master'
2 parents 046d5f7 + 29e0e09 commit 9067830

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ class Client extends EventEmitter {
620620
maxApdu: options.maxApdu || baEnum.MaxApduLengthAccepted.OCTETS_1476,
621621
invokeId: options.invokeId || this._getInvokeId(),
622622
arrayIndex: options.arrayIndex || baEnum.ASN1_ARRAY_ALL,
623-
priority: options.priority
623+
priority: options.priority || baEnum.ASN1_NO_PRIORITY
624624
};
625625
const buffer = this._getBuffer();
626626
baNpdu.encode(buffer, baEnum.NpduControlPriority.NORMAL_MESSAGE | baEnum.NpduControlBits.EXPECTING_REPLY, address, null, DEFAULT_HOP_COUNT, baEnum.NetworkLayerMessageType.WHO_IS_ROUTER_TO_NETWORK, 0);

0 commit comments

Comments
 (0)