node-modbus
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -14,2 +14,10 @@ var stampit = require('stampit'), | ||
if(!this.connectionDelay) { | ||
if(process.platform === "win32") { | ||
this.connectionDelay = 250; // ms | ||
} else { | ||
this.connectionDelay = 100; // ms | ||
} | ||
} | ||
var init = function () { | ||
@@ -43,10 +51,2 @@ | ||
if(!this.connectionDelay) { | ||
if(process.platform === "win32") { | ||
this.connectionDelay = 250; // ms | ||
} else { | ||
this.connectionDelay = 100; // ms | ||
} | ||
} | ||
if (!this.connectionType) { | ||
@@ -168,4 +168,4 @@ this.connectionType = 'RTU'; | ||
this.setState('connecting'); | ||
timerID = setTimeout(init(), connectionDelay); | ||
timerID = setTimeout(init(), this.connectionDelay); | ||
}); |
{ | ||
"name": "node-modbus", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Sum of implementations for the Serial/TCP Modbus protocol.", | ||
@@ -5,0 +5,0 @@ "author": "Klaus Landsdorf <klaus.landsdorf@bianco-royal.de>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58120