Skip to content

Commit

Permalink
Fix broken iio_device_get_sample_size with same-index channels
Browse files Browse the repository at this point in the history
This fixes a bug introduced in 4792fa3.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
Paul Cercueil committed Apr 24, 2017
1 parent cc06805 commit 263bd08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions device.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ ssize_t iio_device_get_sample_size_mask(const struct iio_device *dev,
size += 2 * length - (size % length);
else
size += length;

prev = chn;
}
return size;
}
Expand Down

0 comments on commit 263bd08

Please sign in to comment.