mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-11 18:35:49 +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);
|
getSupport().evaluateGBDeviceEvent(findPhoneEvent);
|
||||||
}
|
}
|
||||||
return;
|
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:
|
case CMD_DISPLAY_ITEMS_GET:
|
||||||
handleDisplayItems(cmd.getSystem().getDisplayItems());
|
handleDisplayItems(cmd.getSystem().getDisplayItems());
|
||||||
return;
|
return;
|
||||||
|
@ -87,7 +87,7 @@ message System {
|
|||||||
optional Clock clock = 4;
|
optional Clock clock = 4;
|
||||||
|
|
||||||
// 2, 18
|
// 2, 18
|
||||||
optional uint32 findDevice = 5; // 0
|
optional uint32 findDevice = 5; // 0, 1 == "found it" pressed on device
|
||||||
|
|
||||||
// 2, 29 get | 2, 39 set
|
// 2, 29 get | 2, 39 set
|
||||||
optional DisplayItems displayItems = 10;
|
optional DisplayItems displayItems = 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user