mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-24 10:56:50 +01:00
Fix previous commit (compile!)
This commit is contained in:
parent
9a106667d2
commit
2e6536555b
@ -361,7 +361,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
|||||||
LOG.info("Attempting to set wear location...");
|
LOG.info("Attempting to set wear location...");
|
||||||
BluetoothGattCharacteristic characteristic = getCharacteristic(MiBandService.UUID_CHARACTERISTIC_CONTROL_POINT);
|
BluetoothGattCharacteristic characteristic = getCharacteristic(MiBandService.UUID_CHARACTERISTIC_CONTROL_POINT);
|
||||||
if (characteristic != null) {
|
if (characteristic != null) {
|
||||||
transaction.add(new ConditionalWriteAction() {
|
transaction.add(new ConditionalWriteAction(characteristic) {
|
||||||
@Override
|
@Override
|
||||||
protected byte[] checkCondition() {
|
protected byte[] checkCondition() {
|
||||||
if (getDeviceInfo() != null && getDeviceInfo().isAmazFit()) {
|
if (getDeviceInfo() != null && getDeviceInfo().isAmazFit()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user