From 0fb066cb16feee4c88bdb7e18c0537c11db55ec8 Mon Sep 17 00:00:00 2001 From: moussaillon Date: Sun, 5 Jan 2020 19:42:36 +0100 Subject: [PATCH] No need to specify Adafruit_PWMServoDriver class to call methods --- Adafruit_PWMServoDriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_PWMServoDriver.cpp b/Adafruit_PWMServoDriver.cpp index e972fdf..23b7365 100755 --- a/Adafruit_PWMServoDriver.cpp +++ b/Adafruit_PWMServoDriver.cpp @@ -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); @@ -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); } /*!