trivial: logitech_hidpp: set the protocol properly when bootloader unknown

This appears to be a regression from c6ae0d998b
where the case of bootloader version 0 didn't get protocol set.

Fixes: #2156
This commit is contained in:
Mario Limonciello 2020-06-02 10:14:33 -05:00 committed by Mario Limonciello
parent 0f6d754d5a
commit c0a2798fb5

View File

@ -230,10 +230,10 @@ fu_logitech_hidpp_runtime_setup_internal (FuDevice *device, GError **error)
(self->version_bl_major == 0x03 && config[8] >= 0x02)) {
self->signed_firmware = TRUE;
fu_device_set_protocol (device, "com.logitech.unifyingsigned");
} else {
fu_device_set_protocol (device, "com.logitech.unifying");
}
}
if (!self->signed_firmware)
fu_device_set_protocol (device, "com.logitech.unifying");
/* enable HID++ notifications */
if (!fu_logitech_hidpp_runtime_enable_notifications (self, error)) {