Skip to content

Commit

Permalink
Merge pull request #71 from ulysse314/callmethods
Browse files Browse the repository at this point in the history
No need to specify "Adafruit_PWMServoDriver::" class to call methods
  • Loading branch information
ladyada authored Jan 18, 2020
2 parents d8bb4b1 + 0fb066c commit 6335f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Adafruit_PWMServoDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void Adafruit_PWMServoDriver::writeMicroseconds(uint8_t num,
pulselength = 1000000; // 1,000,000 us per second

// Read prescale
uint16_t prescale = Adafruit_PWMServoDriver::readPrescale();
uint16_t prescale = readPrescale();

#ifdef ENABLE_DEBUG_OUTPUT
Serial.print(prescale);
Expand All @@ -320,7 +320,7 @@ void Adafruit_PWMServoDriver::writeMicroseconds(uint8_t num,
Serial.println(" pulse for PWM");
#endif

Adafruit_PWMServoDriver::setPWM(num, 0, pulse);
setPWM(num, 0, pulse);
}

/*!
Expand Down

0 comments on commit 6335f00

Please sign in to comment.