Xiaomi: Add support to for command CMD_FIND_WATCH

This commit is contained in:
Aike Seiko 2024-12-04 09:49:19 +00:00 committed by José Rebelo
parent 9d5a02b0bf
commit f8ebe19d4b
2 changed files with 7 additions and 1 deletions

View File

@ -178,6 +178,12 @@ public class XiaomiSystemService extends AbstractXiaomiService implements Xiaomi
getSupport().evaluateGBDeviceEvent(findPhoneEvent);
}
return;
case CMD_FIND_WATCH:
if (cmd.hasSystem()) {
LOG.debug("Got find device: {}", cmd.getSystem().getFindDevice());
// TODO mark device as found
}
return;
case CMD_DISPLAY_ITEMS_GET:
handleDisplayItems(cmd.getSystem().getDisplayItems());
return;

View File

@ -87,7 +87,7 @@ message System {
optional Clock clock = 4;
// 2, 18
optional uint32 findDevice = 5; // 0
optional uint32 findDevice = 5; // 0, 1 == "found it" pressed on device
// 2, 29 get | 2, 39 set
optional DisplayItems displayItems = 10;