Skip to content

Commit ac94a65

Browse files
committed
Code review required comment removal
1 parent 81a0014 commit ac94a65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Servo/src/nrf52/Servo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void Servo::write(int value)
129129

130130
void Servo::writeMicroseconds(int value)
131131
{
132-
if (this->pwm) { // pwm is only set when this->servoIndex != INVALID_SERVO
132+
if (this->pwm) {
133133
uint8_t pin = servos[this->servoIndex].Pin.nbr;
134134
this->pwm->writePin(pin, value/DUTY_CYCLE_RESOLUTION);
135135
}
@@ -142,7 +142,7 @@ int Servo::read() // return the value as degrees
142142

143143
int Servo::readMicroseconds()
144144
{
145-
if (this->pwm) { // pwm is only set when this->servoIndex != INVALID_SERVO
145+
if (this->pwm) {
146146
uint8_t pin = servos[this->servoIndex].Pin.nbr;
147147
return this->pwm->readPin(pin)*DUTY_CYCLE_RESOLUTION;
148148
}

0 commit comments

Comments
 (0)