Amazfit Bip: log "step goal reached" event

This commit is contained in:
Andreas Shimokawa 2017-09-16 19:53:06 +02:00
parent 9471131490
commit 37da178365
2 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,7 @@ package nodomain.freeyourgadget.gadgetbridge.service.devices.amazfitbip;
public class AmazfitBipEvent {
public static final byte FELL_ASLEEP = 0x01;
public static final byte WOKE_UP = 0x02;
public static final byte STEPSGOAL_REACHED = 0x03;
public static final byte BUTTON_PRESSED = 0x04;
public static final byte START_NONWEAR = 0x06;
public static final byte CALL_REJECT = 0x07;

View File

@ -30,12 +30,11 @@ import java.nio.ByteOrder;
import java.util.SimpleTimeZone;
import java.util.UUID;
import nodomain.freeyourgadget.gadgetbridge.Logging;
import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEventCallControl;
import nodomain.freeyourgadget.gadgetbridge.devices.miband2.MiBand2Icon;
import nodomain.freeyourgadget.gadgetbridge.devices.amazfitbip.AmazfitBipService;
import nodomain.freeyourgadget.gadgetbridge.devices.amazfitbip.AmazfitBipWeatherConditions;
import nodomain.freeyourgadget.gadgetbridge.devices.miband.MiBand2Service;
import nodomain.freeyourgadget.gadgetbridge.devices.miband2.MiBand2Icon;
import nodomain.freeyourgadget.gadgetbridge.model.CallSpec;
import nodomain.freeyourgadget.gadgetbridge.model.NotificationSpec;
import nodomain.freeyourgadget.gadgetbridge.model.NotificationType;
@ -145,6 +144,9 @@ public class AmazfitBipSupport extends MiBand2Support {
case AmazfitBipEvent.WOKE_UP:
LOG.info("Woke up");
break;
case AmazfitBipEvent.STEPSGOAL_REACHED:
LOG.info("Steps goal reached");
break;
case AmazfitBipEvent.TICK_30MIN:
LOG.info("Tick 30 min (?)");
break;