Bip: pass the right logger instance
This commit is contained in:
parent
32d5ceb78f
commit
770c8a482d
|
@ -55,6 +55,10 @@ public class AmazfitBipSupport extends MiBand2Support {
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(AmazfitBipSupport.class);
|
private static final Logger LOG = LoggerFactory.getLogger(AmazfitBipSupport.class);
|
||||||
|
|
||||||
|
public AmazfitBipSupport() {
|
||||||
|
super(LOG);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public NotificationStrategy getNotificationStrategy() {
|
public NotificationStrategy getNotificationStrategy() {
|
||||||
return new AmazfitBipTextNotificationStrategy(this);
|
return new AmazfitBipTextNotificationStrategy(this);
|
||||||
|
|
|
@ -154,7 +154,11 @@ public class MiBand2Support extends AbstractBTLEDeviceSupport {
|
||||||
private boolean alarmClockRinging;
|
private boolean alarmClockRinging;
|
||||||
|
|
||||||
public MiBand2Support() {
|
public MiBand2Support() {
|
||||||
super(LOG);
|
this(LOG);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MiBand2Support(Logger logger) {
|
||||||
|
super(logger);
|
||||||
addSupportedService(GattService.UUID_SERVICE_GENERIC_ACCESS);
|
addSupportedService(GattService.UUID_SERVICE_GENERIC_ACCESS);
|
||||||
addSupportedService(GattService.UUID_SERVICE_GENERIC_ATTRIBUTE);
|
addSupportedService(GattService.UUID_SERVICE_GENERIC_ATTRIBUTE);
|
||||||
addSupportedService(GattService.UUID_SERVICE_HEART_RATE);
|
addSupportedService(GattService.UUID_SERVICE_HEART_RATE);
|
||||||
|
|
Loading…
Reference in New Issue