Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
1e0206d2
Commit
1e0206d2
authored
Feb 12, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: use atoi instead of fromdec
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
424bba50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
faults.c
arch-wrpc/faults.c
+3
-3
No files found.
arch-wrpc/faults.c
View file @
1e0206d2
...
...
@@ -20,9 +20,9 @@ static int cmd_fault(const char *args[])
if
(
args
[
0
]
&&
!
strcmp
(
args
[
0
],
"drop"
))
{
if
(
args
[
1
])
fromdec
(
args
[
1
],
&
ppg
->
rxdrop
);
ppg
->
rxdrop
=
atoi
(
args
[
1
]
);
if
(
args
[
2
])
fromdec
(
args
[
2
],
&
ppg
->
txdrop
);
ppg
->
txdrop
=
atoi
(
args
[
2
]
);
ppsi_drop_init
(
ppg
,
timer_get_tics
());
pp_printf
(
"dropping %i/1000 rx, %i/1000 tx
\n
"
,
ppg
->
rxdrop
,
ppg
->
txdrop
);
...
...
@@ -30,7 +30,7 @@ static int cmd_fault(const char *args[])
}
if
(
args
[
0
]
&&
!
strcmp
(
args
[
0
],
"delay"
))
{
if
(
args
[
1
])
fr
omdec
(
args
[
1
],
&
frame_rx_delay_us
);
fr
ame_rx_delay_us
=
atoi
(
args
[
1
]
);
pp_printf
(
"delaying %i us on rx frame
\n
"
,
frame_rx_delay_us
);
return
0
;
}
...
...
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