Bip: pass the right logger instance

master
cpfeiffer 2017-09-27 21:46:23 +02:00
parent 32d5ceb78f
commit 770c8a482d
2 changed files with 9 additions and 1 deletions

View File

@ -55,6 +55,10 @@ public class AmazfitBipSupport extends MiBand2Support {
private static final Logger LOG = LoggerFactory.getLogger(AmazfitBipSupport.class);
public AmazfitBipSupport() {
super(LOG);
}
@Override
public NotificationStrategy getNotificationStrategy() {
return new AmazfitBipTextNotificationStrategy(this);

View File

@ -154,7 +154,11 @@ public class MiBand2Support extends AbstractBTLEDeviceSupport {
private boolean alarmClockRinging;
public MiBand2Support() {
super(LOG);
this(LOG);
}
public MiBand2Support(Logger logger) {
super(logger);
addSupportedService(GattService.UUID_SERVICE_GENERIC_ACCESS);
addSupportedService(GattService.UUID_SERVICE_GENERIC_ATTRIBUTE);
addSupportedService(GattService.UUID_SERVICE_HEART_RATE);