summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-07-31 18:17:53 +0100
committerRichard Hughes <richard@hughsie.com>2017-07-31 19:51:13 +0100
commit952a307af0277e9b58528f4791ceb6dbc442469a (patch)
tree4d5f1b6d851ee6b53f3015f8560e1d6e0f4912a8
parent433a898c056be9d845c70de725a0e0aabad4c42e (diff)
downloadcolord-952a307af0277e9b58528f4791ceb6dbc442469a.tar.gz
trivial: The P70 has a Huey with a different PID
-rw-r--r--src/sensors/huey/huey-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sensors/huey/huey-device.c b/src/sensors/huey/huey-device.c
index 4508a40..3c72375 100644
--- a/src/sensors/huey/huey-device.c
+++ b/src/sensors/huey/huey-device.c
@@ -177,7 +177,8 @@ huey_device_unlock (GUsbDevice *device, GError **error)
/* embedded devices on Lenovo machines use a different unlock code */
if (g_usb_device_get_vid (device) == 0x0765 &&
- g_usb_device_get_pid (device) == 0x5001) {
+ (g_usb_device_get_pid (device) == 0x5001 ||
+ g_usb_device_get_pid (device) == 0x5010)) {
request[0] = HUEY_CMD_UNLOCK;
request[1] = 'h';
request[2] = 'u';