Fix typo in utils param name.
This commit is contained in:
parent
62d4ef620e
commit
a60f16b8ea
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue