diff --git a/boostmovehub.ts b/boostmovehub.ts index a05bf96..0412e65 100644 --- a/boostmovehub.ts +++ b/boostmovehub.ts @@ -70,7 +70,7 @@ export class BoostMoveHub extends LPF2Hub { * Set the motor speed on a given port. * @method BoostMoveHub#setMotorSpeed * @param {string} port - * @param {number | Array} speed For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds. + * @param {number | Array.} speed For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds. * @param {number} [time] How long to activate the motor for (in milliseconds). Leave empty to turn the motor on indefinitely. * @returns {Promise} Resolved upon successful completion of command. If time is specified, this is once the motor is finished. */ diff --git a/puphub.ts b/puphub.ts index 8bb2453..b7474f9 100644 --- a/puphub.ts +++ b/puphub.ts @@ -75,7 +75,7 @@ export class PUPHub extends LPF2Hub { * Set the motor speed on a given port. * @method PUPHub#setMotorSpeed * @param {string} port - * @param {number | Array} speed For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds. + * @param {number | Array.} speed For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds. * @param {number} [time] How long to activate the motor for (in milliseconds). Leave empty to turn the motor on indefinitely. * @returns {Promise} Resolved upon successful completion of command. If time is specified, this is once the motor is finished. */