mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-11 18:35:49 +01:00
Xiaomi: Print log message if cmd.hasSystem()
returns true, otherwise cmd.getSystem()
would not work in the first place.
This commit is contained in:
parent
b8990ecc31
commit
6e3ce50221
@ -171,8 +171,8 @@ public class XiaomiSystemService extends AbstractXiaomiService implements Xiaomi
|
||||
LOG.debug("Got camera remote set ack, status={}", cmd.getStatus());
|
||||
return;
|
||||
case CMD_FIND_PHONE:
|
||||
LOG.debug("Got find phone: {}", cmd.getSystem().getFindDevice());
|
||||
if (cmd.hasSystem()) {
|
||||
LOG.debug("Got find phone: {}", cmd.getSystem().getFindDevice());
|
||||
final GBDeviceEventFindPhone findPhoneEvent = new GBDeviceEventFindPhone();
|
||||
if (cmd.getSystem().getFindDevice() == 0) {
|
||||
findPhoneEvent.event = GBDeviceEventFindPhone.Event.START;
|
||||
|
Loading…
Reference in New Issue
Block a user