Skip to content
Snippets Groups Projects
Commit fc829b85 authored by Daniel Agar's avatar Daniel Agar
Browse files

pwm_out_sim PWM_SERVO_SET_MIN_PWM fix index check

 - fixes coverity CID 264261
parent 8c43408a
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,7 @@ PWMSim::ioctl(device::file_t *filp, int cmd, unsigned long arg)
for (unsigned i = 0; i < pwm->channel_count; i++) {
if (i <= MAX_ACTUATORS) {
if (i < MAX_ACTUATORS) {
_pwm_min[i] = pwm->values[i];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment