Commit cf1ba58d authored by Jeroen Vreeken's avatar Jeroen Vreeken

Check for 0-3.

parent 39aa815a
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment