Skip to content

Commit

Permalink
Update testing to use bytes and not samples
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 14, 2023
1 parent b2ecaad commit 9b2170f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/hardware/test_ad9364.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "iio/iio.h"

#define N_TX_SAMPLES 512
#define BYTES_PER_SAMPLE 2

struct iio_context *ctx;
struct iio_device *phy, *rx, *tx;
Expand Down Expand Up @@ -54,7 +55,7 @@ int main() {
assert(err == 0);
}

txblock = iio_buffer_create_block(txbuf, N_TX_SAMPLES);
txblock = iio_buffer_create_block(txbuf, N_TX_SAMPLES*BYTES_PER_SAMPLE);

// Generate ramp signal on both I and Q channels
int16_t *p_dat, *p_end;
Expand Down

0 comments on commit 9b2170f

Please sign in to comment.