Skip to content
Snippets Groups Projects
Commit cf1ba58d authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Check for 0-3.

parent 39aa815a
Branches
Tags
No related merge requests found
......@@ -94,7 +94,7 @@ static struct controller_block * block_atsamx70_pwm_create(char *name, int argc,
}
ch_nr = va_arg(ap, int);
if (ch_nr < 0 || ch_nr > 1) {
if (ch_nr < 0 || ch_nr > 3) {
log_send(LOG_T_ERROR, "%s: channel %d is not valid. (valid: 0-3)",
name, ch_nr);
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment