hello Andy, On Sun, Feb 04, 2024 at 06:03:28PM +0200, andy.shevchenko@xxxxxxxxx wrote: [..] > > + memcpy(&data->scan.chan[1], &data->buffer[2], 2); > > Hmm... We don't have fixed-size memcpy() :-( __be16 *ptr; ptr = (__be16 *) data->buffer; data->scan.chan[0] = *ptr; data->scan.chan[1] = *++ptr; is this an acceptable replacement? I do not understand that your concern was, my intent was to copy exactly 2 bytes over. > > + iio_push_to_buffers_with_timestamp(indio_dev, &data->scan, > > + iio_get_time_ns(indio_dev)); thanks, peter
Attachment:
signature.asc
Description: PGP signature