Fix typo in utils param name.

This commit is contained in:
Edgar Silva 2014-06-05 14:47:48 -05:00
parent 62d4ef620e
commit a60f16b8ea
1 changed files with 1 additions and 1 deletions

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(scaledDuty, freq, pulseWidth, polarity) {
var period, duty, maxDuty;
polarity = polarity || 'high';