diff --git a/src/driver-sinowealth.c b/src/driver-sinowealth.c index 97f03637..d2720497 100644 --- a/src/driver-sinowealth.c +++ b/src/driver-sinowealth.c @@ -387,6 +387,10 @@ sinowealth_init_profile(struct ratbag_device *device) if (rc) return rc; + rc = sinowealth_read_raw_data(device); + if (rc) + return rc; + /* number of DPIs = all DPIs from min to max (inclusive) and "0 DPI" as a special value * to signal a disabled DPI step. */ @@ -469,12 +473,6 @@ sinowealth_probe(struct ratbag_device *device) goto err; } - rc = sinowealth_read_raw_data(device); - if (rc) { - rc = -ENODEV; - goto err; - } - profile = ratbag_device_get_profile(device, 0); rc = sinowealth_update_profile(profile); if (rc) {