Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zephyr Firmware
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kestrel Collaboration
Kestrel Firmware
Zephyr Firmware
Commits
532ecc4e
Commit
532ecc4e
authored
Apr 27, 2021
by
Raptor Engineering Development Team
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parse PWM control command arguments as decimal numbers
parent
97b1b8d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kestrel/src/shell.c
kestrel/src/shell.c
+2
-2
No files found.
kestrel/src/shell.c
View file @
532ecc4e
...
...
@@ -200,8 +200,8 @@ static int kestrel_shell_cmd_pwmcontrol(const struct shell *shell, size_t argc,
return
-
1
;
}
channel
=
strtoul
(
argv
[
1
],
NULL
,
1
6
);
value
=
strtoul
(
argv
[
2
],
NULL
,
1
6
);
channel
=
strtoul
(
argv
[
1
],
NULL
,
1
0
);
value
=
strtoul
(
argv
[
2
],
NULL
,
1
0
);
#ifdef SIMPLEPWM_BASE
set_pwm_value
((
uint8_t
*
)
SIMPLEPWM_BASE
,
channel
,
value
);
...
...
Write
Preview
Markdown
is supported
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