mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Xiaomi: Add support to for command CMD_FIND_WATCH
This commit is contained in:
parent
9d5a02b0bf
commit
f8ebe19d4b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user