Commit 5d91a0e2 authored by Federico Vaga's avatar Federico Vaga

Merge commit '854b1f65' into develop

parents b454df5c 854b1f65
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment