1
0
forked from drath/libratbag

Merge pull request #8 from phomes/fallback_profile_active_default

hidpp10: make the fallback profile active and default
This commit is contained in:
Peter Hutterer
2015-09-14 08:33:34 +10:00

View File

@@ -234,7 +234,13 @@ hidpp10drv_probe(struct ratbag_device *device, const struct ratbag_id id)
if (hidpp10drv_fill_from_profile(device, dev)) {
/* Fall back to something that every mouse has */
struct ratbag_profile *profile;
ratbag_device_init_profiles(device, 1, 3);
profile = ratbag_device_get_profile_by_index(device, 0);
profile->is_active = true;
profile->is_default = true;
ratbag_profile_unref(profile);
}
return 0;