mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-27 01:57:32 +01:00
Some logging
This commit is contained in:
parent
cfc310692f
commit
55bf9ef784
@ -30,6 +30,7 @@ import java.nio.ByteOrder;
|
|||||||
import java.util.SimpleTimeZone;
|
import java.util.SimpleTimeZone;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import nodomain.freeyourgadget.gadgetbridge.Logging;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEventCallControl;
|
import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEventCallControl;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.amazfitbip.AmazfitBipIcon;
|
import nodomain.freeyourgadget.gadgetbridge.devices.amazfitbip.AmazfitBipIcon;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.devices.amazfitbip.AmazfitBipService;
|
import nodomain.freeyourgadget.gadgetbridge.devices.amazfitbip.AmazfitBipService;
|
||||||
@ -122,6 +123,7 @@ public class AmazfitBipSupport extends MiBand2Support {
|
|||||||
} else if (value[0] == 0x09) {
|
} else if (value[0] == 0x09) {
|
||||||
callCmd.event = GBDeviceEventCallControl.Event.ACCEPT;
|
callCmd.event = GBDeviceEventCallControl.Event.ACCEPT;
|
||||||
} else {
|
} else {
|
||||||
|
LOG.info("Unhandled button press: " + Logging.formatBytes(value));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
evaluateGBDeviceEvent(callCmd);
|
evaluateGBDeviceEvent(callCmd);
|
||||||
@ -186,7 +188,8 @@ public class AmazfitBipSupport extends MiBand2Support {
|
|||||||
|
|
||||||
builder.write(getCharacteristic(AmazfitBipService.UUID_CHARACTERISTIC_WEATHER), buf.array());
|
builder.write(getCharacteristic(AmazfitBipService.UUID_CHARACTERISTIC_WEATHER), buf.array());
|
||||||
builder.queue(getQueue());
|
builder.queue(getQueue());
|
||||||
} catch (IOException ignore) {
|
} catch (Exception ex) {
|
||||||
|
LOG.error("Error sending weather information to the Bip", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user