Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Roelofs
dt_ctrl
Commits
cf1ba58d
Commit
cf1ba58d
authored
Oct 06, 2018
by
Jeroen Vreeken
Browse files
Check for 0-3.
parent
39aa815a
Changes
1
Hide whitespace changes
Inline
Side-by-side
controller/atsamx70/block_atsamx70_pwm.c
View file @
cf1ba58d
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment