summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-27 21:04:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-27 21:24:00 -0700
commit344b9e3234bc3f0d64fb92d876425b5dc9a0a555 (patch)
treec3de39c4de0c9ed5bd17fe10f4c2e8c0fc0bac2c
parentea8e3006db2d7244e1624aea3023ae4509effdba (diff)
downloadsubsurface-344b9e3234bc3f0d64fb92d876425b5dc9a0a555.tar.gz
Fix one call site that hadn't been updated
When updating to the new dc_custom_io_t, this one spot had been missed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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));