From 32ebbca42ff8d93ff4242dc356f7c57781d13948 Mon Sep 17 00:00:00 2001 From: Qiu Wenbo Date: Thu, 12 Dec 2019 08:33:02 +0800 Subject: [PATCH] hidpp20: fix G305 quirk detection Signed-off-by: Qiu Wenbo --- src/hidpp20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidpp20.c b/src/hidpp20.c index 0811e4c5..70493385 100644 --- a/src/hidpp20.c +++ b/src/hidpp20.c @@ -2627,7 +2627,7 @@ hidpp20_onboard_profiles_initialize(struct hidpp20_device *device, profiles->sector_size, data); - if (rc && device->quirk != HIDPP20_QUIRK_G305) { + if (rc && device->quirk == HIDPP20_QUIRK_G305) { /* The G305 has a bug where it throws an ERR_INVALID_ARGUMENT if the sector has not been written to yet. If this happens we will read the ROM profiles.*/