diff --git a/src/hidpp10.c b/src/hidpp10.c index 1cc23d40..cbdbbb91 100644 --- a/src/hidpp10.c +++ b/src/hidpp10.c @@ -1206,7 +1206,7 @@ hidpp10_onboard_profiles_parse_macro(struct hidpp10_device *device, hidpp_log_raw(&device->base, "*** macro starts at (0x%02x, 0x%04x) ***\n", page, offset); rc = hidpp10_onboard_profiles_read_macro(device, page, offset, ¯o); - if (rc) { + if (rc < 0) { hidpp_log_raw(&device->base, "hidpp10: failed to read macro\n"); return rc; }