1
0
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:
Aike Seiko 2024-12-04 09:51:29 +00:00 committed by José Rebelo
parent b8990ecc31
commit 6e3ce50221

View File

@ -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;