Skip to content

Commit 27dd79b

Browse files
committed
Fix errors due to changes done in Code Review
Updates the usages of functions or constants that the names were changed
1 parent 0091d6d commit 27dd79b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renesas/Servo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static int servo_timer_config(uint32_t period_us)
8484
servo_timer.stop();
8585
// Read the timer's period count.
8686
servo_ticks_per_cycle = servo_timer.get_period_raw();
87-
min_servo_cycle_low = usToticks(MIN_CYCLE_OFF_US);
87+
min_servo_cycle_low = us_to_ticks(SERVO_MIN_CYCLE_OFF_US);
8888

8989
configured = true;
9090
}
@@ -255,7 +255,7 @@ void Servo::writeMicroseconds(int us)
255255
if (servoIndex != SERVO_INVALID_INDEX) {
256256
ra_servo_t *servo = &ra_servos[servoIndex];
257257
servo->period_us = constrain(us, servo->period_min, servo->period_max);
258-
servo->period_ticks = usToticks(servo->period_us);
258+
servo->period_ticks = us_to_ticks(servo->period_us);
259259
}
260260
}
261261

0 commit comments

Comments
 (0)