Skip to content

Commit

Permalink
Fix errors due to changes done in Code Review
Browse files Browse the repository at this point in the history
Updates the usages of functions or constants that the names were changed
  • Loading branch information
KurtE committed Jan 4, 2024
1 parent 0091d6d commit 27dd79b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renesas/Servo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static int servo_timer_config(uint32_t period_us)
servo_timer.stop();
// Read the timer's period count.
servo_ticks_per_cycle = servo_timer.get_period_raw();
min_servo_cycle_low = usToticks(MIN_CYCLE_OFF_US);
min_servo_cycle_low = us_to_ticks(SERVO_MIN_CYCLE_OFF_US);

configured = true;
}
Expand Down Expand Up @@ -255,7 +255,7 @@ void Servo::writeMicroseconds(int us)
if (servoIndex != SERVO_INVALID_INDEX) {
ra_servo_t *servo = &ra_servos[servoIndex];
servo->period_us = constrain(us, servo->period_min, servo->period_max);
servo->period_ticks = usToticks(servo->period_us);
servo->period_ticks = us_to_ticks(servo->period_us);
}
}

Expand Down

0 comments on commit 27dd79b

Please sign in to comment.