summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/serial_ftdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/serial_ftdi.c b/core/serial_ftdi.c
index ade104a1c..f8cba95d3 100644
--- a/core/serial_ftdi.c
+++ b/core/serial_ftdi.c
@@ -496,7 +496,7 @@ static dc_status_t serial_ftdi_flush (dc_custom_io_t *io, dc_direction_t queue)
return DC_STATUS_INVALIDARGS;
size_t input;
- serial_ftdi_get_received (userdata, &input);
+ serial_ftdi_get_received (io, &input);
INFO (device->context, "Flush: queue=%u, input=%lu, output=%i", queue, input,
serial_ftdi_get_transmitted (device));