Browse Source

Check for 0-3.

jeroen
Jeroen Vreeken 3 years ago
parent
commit
cf1ba58db9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      controller/atsamx70/block_atsamx70_pwm.c

+ 1
- 1
controller/atsamx70/block_atsamx70_pwm.c View File

@ -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;


Loading…
Cancel
Save