Skip to content

Commit

Permalink
Changed the SubRequest type to ReadFileSubRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
morkai committed Jul 6, 2013
1 parent 0d4cddb commit 41fd215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Master.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Master.prototype.readInputRegisters = function(address, quantity, options)
};

/**
* @param {Array.<SubRequest>} subRequests
* @param {Array.<ReadFileSubRequest>} subRequests
* @param {function|object} [options]
* @param {number} [options.unit]
* @param {number} [options.interval]
Expand Down
10 changes: 5 additions & 5 deletions lib/functions/ReadFileRecordRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = ReadFileRecordRequest;
*
* @constructor
* @extends {Request}
* @param {Array.<SubRequest>} subRequests An array of sub-requests.
* @param {Array.<ReadFileSubRequest>} subRequests An array of sub-requests.
* @throws {Error} If any of the specified sub-requests are invalid.
*/
function ReadFileRecordRequest(subRequests)
Expand All @@ -33,7 +33,7 @@ function ReadFileRecordRequest(subRequests)
* An array of sub-requests.
*
* @private
* @type {Array.<SubRequest>}
* @type {Array.<ReadFileSubRequest>}
*/
this.subRequests = subRequests.map(function(subRequest)
{
Expand Down Expand Up @@ -74,7 +74,7 @@ util.inherits(ReadFileRecordRequest, Request);
* Defaults to 1.
*
* @param {object} options An options object.
* @param {Array.<SubRequest>} options.subRequests
* @param {Array.<ReadFileSubRequest>} options.subRequests
* @returns {ReadFileRecordRequest} A request created
* from the specified `options`.
* @throws {Error} If any of the specified options are not valid.
Expand Down Expand Up @@ -181,7 +181,7 @@ ReadFileRecordRequest.prototype.createResponse = function(responseBuffer)
};

/**
* @returns {Array.<SubRequest>} An array of sub-requests.
* @returns {Array.<ReadFileSubRequest>} An array of sub-requests.
*/
ReadFileRecordRequest.prototype.getSubRequests = function()
{
Expand All @@ -193,4 +193,4 @@ ReadFileRecordRequest.prototype.getSubRequests = function()
/**
* @typedef {{fileNumber: number, recordNumber: number, recordLength: number}}
*/
var SubRequest;
var ReadFileSubRequest;

0 comments on commit 41fd215

Please sign in to comment.