Skip to content

Commit

Permalink
bump bugfix version
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed May 9, 2017
1 parent 4aa9478 commit 6cce55a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,7 @@ var ModbusRTU = function(port) {

// state variables
this._transactions = {};
this._port._transactionId = 1;

this._timeout = null; // timeout in msec before unanswered request throws timeout error

this._unitID = 1;
};

Expand All @@ -210,6 +207,9 @@ ModbusRTU.prototype.open = function(callback) {
if (callback)
callback(error);

/* init ports transaction id */
modbus._port._transactionId = 1;

/* On serial port success
* register the modbus parser functions
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modbus-serial",
"version": "5.2.11",
"version": "5.2.12",
"description": "A pure JavaScript implemetation of MODBUS-RTU (Serial and TCP) for NodeJS.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6cce55a

Please sign in to comment.