Fix typos in new sero IO util.

This commit is contained in:
edgarsilva 2014-06-02 18:02:02 -05:00
parent 293594355c
commit 62d4ef620e
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ var Cylon = module.exports = {
IO: {
DigitalPin: require('./io/digital-pin'),
Utils: requre('./io/utils')
Utils: require('./io/utils')
},
api_instance: null,

View File

@ -2,7 +2,7 @@ Utils = {
// Returns { period: int, duty: int }
// Calculated based on params value, freq, pulseWidth = { min: int, max: int }
// pulseWidth min and max need to be specified in microseconds
periodAndDuty = function(scaledValue, freq, pulseWidth, polarity) {
periodAndDuty: function(scaledValue, freq, pulseWidth, polarity) {
var period, duty, maxDuty;
polarity = polarity || 'high';
@ -23,7 +23,7 @@ Utils = {
}
return { period: period, duty: duty };
};
}
};
module.exports = Utils;