Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Jun 7, 2020
1 parent a2e948d commit 355bc89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const jsdoc = require("gulp-jsdoc3");
const clean = require("gulp-clean");

gulp.task("default", function() {
// place code for your default task here
// place code for your default task here
});

gulp.task("docs", ["doc", "docExamples"]);
Expand All @@ -33,15 +33,15 @@ gulp.task("apis", function(cb) {
gulp.dest("modbus-serial/apis")
],
cb
);
);
});

gulp.task("ports", function(cb) {
pump([
gulp.src("ports/**/*.js"),
gulp.dest("modbus-serial/ports")
],
cb
cb
);
});

Expand Down
4 changes: 3 additions & 1 deletion ports/rtubufferedport.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ RTUBufferedPort.prototype.write = function(data) {
case 16:
this._length = 6 + 2;
break;
case 43:
case 43:
modbusSerialDebug("RTUBuffered F43 not supported");
this._length = 0;
break;
default:
// raise and error ?
this._length = 0;
Expand Down
3 changes: 2 additions & 1 deletion servers/servertcp_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,8 @@ function _handleReadDeviceIdentification(requestBuffer, vector, unitID, callback

// Enforcing maximum string length
if(objects[id].length > stringLengthMax) {
callback({ modbusErrorCode: 0x04, msg: "Read Device Identification string size can be maximum " +
callback({ modbusErrorCode: 0x04,
msg: "Read Device Identification string size can be maximum " +
stringLengthMax });
}

Expand Down

0 comments on commit 355bc89

Please sign in to comment.