synaptics-rmi: Fix regression when setting edpAuxStatusRequest

This commit is contained in:
David Chiu 2021-03-18 15:58:51 +00:00 committed by Richard Hughes
parent 09ad3a7f93
commit 02404b0797

View File

@ -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_ps2_device_write_byte (self, edpAuxSetSampleRate, 50,
FU_SYNAPTICS_RMI_DEVICE_FLAG_NONE, FU_SYNAPTICS_RMI_DEVICE_FLAG_NONE,
error) || 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, FU_SYNAPTICS_RMI_DEVICE_FLAG_NONE,
FALSE, error) || error) ||
!fu_synaptics_rmi_ps2_device_write_byte (self, edpAuxStatusRequest, !fu_synaptics_rmi_ps2_device_write_byte (self, edpAuxStatusRequest, 50,
FU_SYNAPTICS_RMI_DEVICE_FLAG_NONE, FU_SYNAPTICS_RMI_DEVICE_FLAG_NONE,
FALSE, error)) { error)) {
g_prefix_error (error, "failed to write command in Read RMI Packet Register: "); g_prefix_error (error, "failed to write command in Read RMI Packet Register: ");
return NULL; return NULL;
} }