From 22635bf07d8f2353703a69356989f0e1d8c7092b Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Sun, 18 Sep 2022 05:13:25 -0400 Subject: [PATCH] libhackrf: update hackrf_transfer struct comment --- host/libhackrf/src/hackrf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/host/libhackrf/src/hackrf.h b/host/libhackrf/src/hackrf.h index 68bfd1cd..3f4f010c 100644 --- a/host/libhackrf/src/hackrf.h +++ b/host/libhackrf/src/hackrf.h @@ -154,7 +154,9 @@ typedef struct hackrf_device hackrf_device; /** * USB transfer information passed to RX or TX callback. - * A callback should treat all these fields as read-only except that a TX callback should write to the data buffer. + * A callback should treat all these fields as read-only except that a TX + * callback should write to the data buffer and may write to valid_length to + * indicate that a smaller number of bytes is to be transmitted. */ typedef struct { hackrf_device* device; /**< HackRF USB device for this transfer */