Skip to content

Commit

Permalink
Fixing a few spelling/gramatical mistakes in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nickstew authored and rwaldron committed Jan 5, 2018
1 parent aad4b51 commit 6210634
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/com.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Mock.prototype = Object.create(Emitter.prototype, {

Mock.prototype.write = function (buffer) {
// Tests are written to work with arrays not buffers
// this shouldn"t impact the data, just the container
// this shouldn't impact the data, just the container
// This also should be changed in future test rewrites
if (Buffer.isBuffer(buffer)) {
buffer = Array.from(buffer);
Expand Down
10 changes: 5 additions & 5 deletions lib/firmata.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ SYSEX_RESPONSE[SERIAL_MESSAGE] = function(board) {
* @property pins An array of pin object literals.
* @property analogPins An array of analog pins and their corresponding indexes in the pins array.
* @property version An object indicating the major and minor version of the firmware currently running.
* @property firmware An object indicateon the name, major and minor version of the firmware currently running.
* @property firmware An object indicating the name, major and minor version of the firmware currently running.
* @property currentBuffer An array holding the current bytes received from the arduino.
* @property {SerialPort} sp The serial port object used to communicate with the arduino.
*/
Expand Down Expand Up @@ -539,7 +539,7 @@ function Board(port, options, callback) {
SW_SERIAL2: 0x10,
SW_SERIAL3: 0x11,

// Default can be used by depender libraries to key on a
// Default can be used by dependant libraries to key on a
// single property name when negotiating ports.
//
// Firmata elects SW_SERIAL0: 0x08 as its DEFAULT
Expand Down Expand Up @@ -714,7 +714,7 @@ function Board(port, options, callback) {
}
}.bind(this));

// if we have not received the version within the alotted
// if we have not received the version within the allotted
// time specified by the reportVersionTimeout (user or default),
// then send an explicit request for it.
this.reportVersionTimeoutId = setTimeout(function() {
Expand Down Expand Up @@ -835,7 +835,7 @@ Board.prototype.analogRead = function(pin, callback) {
/**
* Write a PWM value Asks the arduino to write an analog message.
* @param {number} pin The pin to write analog data to.
* @param {nubmer} value The data to write to the pin between 0 and this.RESOLUTION.PWM.
* @param {number} value The data to write to the pin between 0 and this.RESOLUTION.PWM.
*/

Board.prototype.pwmWrite = function(pin, value) {
Expand Down Expand Up @@ -2052,7 +2052,7 @@ Board.prototype.multiStepperStop = function(groupNum) {
};

/**
* Stepper functions to support AdvancedFirmata"s asynchronous control of stepper motors
* Stepper functions to support AdvancedFirmata's asynchronous control of stepper motors
* https://github.com/soundanalogous/AdvancedFirmata
*/

Expand Down

0 comments on commit 6210634

Please sign in to comment.