From 02404b0797e9dfb30c7d707bbd19d672a71ca3e2 Mon Sep 17 00:00:00 2001 From: David Chiu Date: Thu, 18 Mar 2021 15:58:51 +0000 Subject: [PATCH] synaptics-rmi: Fix regression when setting edpAuxStatusRequest --- plugins/synaptics-rmi/fu-synaptics-rmi-ps2-device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/synaptics-rmi/fu-synaptics-rmi-ps2-device.c b/plugins/synaptics-rmi/fu-synaptics-rmi-ps2-device.c index ebb3dc81e..7b88f65de 100644 --- a/plugins/synaptics-rmi/fu-synaptics-rmi-ps2-device.c +++ b/plugins/synaptics-rmi/fu-synaptics-rmi-ps2-device.c @@ -558,12 +558,12 @@ fu_synaptics_rmi_ps2_device_read_rmi_packet_register (FuSynapticsRmiPs2Device *s !fu_synaptics_rmi_ps2_device_write_byte (self, edpAuxSetSampleRate, 50, FU_SYNAPTICS_RMI_DEVICE_FLAG_NONE, error) || - !fu_synaptics_rmi_ps2_device_write_byte (self, addr, + !fu_synaptics_rmi_ps2_device_write_byte (self, addr, 50, FU_SYNAPTICS_RMI_DEVICE_FLAG_NONE, - FALSE, error) || - !fu_synaptics_rmi_ps2_device_write_byte (self, edpAuxStatusRequest, + error) || + !fu_synaptics_rmi_ps2_device_write_byte (self, edpAuxStatusRequest, 50, FU_SYNAPTICS_RMI_DEVICE_FLAG_NONE, - FALSE, error)) { + error)) { g_prefix_error (error, "failed to write command in Read RMI Packet Register: "); return NULL; }