From 2d172534a85d8b86a76b68a10e85d416eda52b1c Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Mon, 6 Jan 2020 14:50:55 -0600 Subject: [PATCH] logitech_hidpp: use the correct timeout for IO channel writes --- plugins/logitech-hidpp/fu-logitech-hidpp-hidpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/logitech-hidpp/fu-logitech-hidpp-hidpp.c b/plugins/logitech-hidpp/fu-logitech-hidpp-hidpp.c index 0ed4c38f4..3a4f0d984 100644 --- a/plugins/logitech-hidpp/fu-logitech-hidpp-hidpp.c +++ b/plugins/logitech-hidpp/fu-logitech-hidpp-hidpp.c @@ -76,7 +76,7 @@ fu_logitech_hidpp_send (FuIOChannel *io_channel, } /* HID */ - if (!fu_io_channel_write_raw (io_channel, (guint8 *) msg, len, 1500, + if (!fu_io_channel_write_raw (io_channel, (guint8 *) msg, len, timeout, FU_IO_CHANNEL_FLAG_FLUSH_INPUT | FU_IO_CHANNEL_FLAG_USE_BLOCKING_IO, error)) { g_prefix_error (error, "failed to send: ");