logitech-hidpp: adhere more closely to the specs

The restart message is supposed to be HIDPP_REPORT_ID_LONG according to
the specs, but it works just as well if we use
HIDPP_REPORT_ID_SHORT. We better stick to the specs, though.
This commit is contained in:
Ricardo Cañuelo 2021-09-17 11:45:12 +02:00 committed by Ricardo Cañuelo Navarro
parent ab5c38b679
commit e47de909c0

View File

@ -1239,7 +1239,7 @@ fu_logitech_hidpp_device_attach(FuLogitechHidPpDevice *self,
}
/* reboot back into firmware mode */
msg->report_id = HIDPP_REPORT_ID_SHORT;
msg->report_id = HIDPP_REPORT_ID_LONG;
msg->device_id = priv->device_idx;
msg->sub_id = idx;
msg->function_id = 0x05 << 4; /* restart */