Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
adc-lib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
adc-lib
Commits
5d91a0e2
Commit
5d91a0e2
authored
Sep 06, 2021
by
Federico Vaga
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
854b1f65
' into develop
parents
b454df5c
854b1f65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
adc-acq.c
tools/adc-acq.c
+2
-2
No files found.
tools/adc-acq.c
View file @
5d91a0e2
...
...
@@ -885,7 +885,7 @@ static int fald_acq_parse_args_and_configure(struct adc_dev *adc, int argc, char
static
void
fald_acq_print_data
(
struct
adc_buffer
*
buf
,
struct
adc_conf
*
acq_brd
,
struct
adc_conf
*
acq_cfg
,
unsigned
int
n
)
int
n
)
{
int
j
,
ch
;
uint32_t
pre
,
nchan
;
...
...
@@ -898,7 +898,7 @@ static void fald_acq_print_data(struct adc_buffer *buf,
/* Print data */
for
(
j
=
0
;
j
<
buf
->
nsamples
;
j
++
)
{
if
(
(
n
>
0
&&
j
<
n
)
||
((
buf
->
nsamples
-
j
)
<=
(
-
n
))
)
{
if
(
(
n
>
0
&&
j
<
n
)
||
(
n
<
0
&&
(
buf
->
nsamples
-
j
)
<=
(
-
n
))
)
{
printf
(
"%5"
PRIu32
" "
,
j
-
pre
);
for
(
ch
=
0
;
ch
<
nchan
;
ch
++
)
{
int32_t
sample
;
...
...
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