diff --git a/src/hidpp10.c b/src/hidpp10.c index dc7e1b60..e0fae947 100644 --- a/src/hidpp10.c +++ b/src/hidpp10.c @@ -1066,6 +1066,17 @@ hidpp10_open_lock(struct hidpp10_device *device, uint8_t timeout) return hidpp10_request_command(device, &open_lock); } + +int +hidpp10_close_lock(struct hidpp10_device *device) +{ + union hidpp10_message open_lock = CMD_DEVICE_CONNECTION_DISCONNECTION(0x00, + CONNECT_DEVICES_CLOSE_LOCK, + 0); + + return hidpp10_request_command(device, &open_lock); +} + int hidpp10_disconnect(struct hidpp10_device *device, int idx) { union hidpp10_message disconnect = CMD_DEVICE_CONNECTION_DISCONNECTION(idx + 1, CONNECT_DEVICES_DISCONNECT, 0x00); diff --git a/src/hidpp10.h b/src/hidpp10.h index 0b0ab099..d100ff21 100644 --- a/src/hidpp10.h +++ b/src/hidpp10.h @@ -474,6 +474,9 @@ hidpp10_read_memory(struct hidpp10_device *dev, int hidpp10_open_lock(struct hidpp10_device *device, uint8_t timeout); +int +hidpp10_close_lock(struct hidpp10_device *device); + int hidpp10_disconnect(struct hidpp10_device *device, int idx);