diff --git a/src/hidpp20.c b/src/hidpp20.c index 21853ceb..3618d116 100644 --- a/src/hidpp20.c +++ b/src/hidpp20.c @@ -1611,7 +1611,7 @@ hidpp20_onboard_profiles_parse_macro(struct hidpp20_device *device, int rc; rc = hidpp20_onboard_profiles_read_macro(device, page, offset, ¯o); - if (rc) + if (rc <= 0) return rc; count = rc;