mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 06:22:55 +01:00
Some cleanup
This commit is contained in:
parent
a7792f6b72
commit
92caed5af4
@ -325,19 +325,12 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
||||
@Override
|
||||
public void onReboot() {
|
||||
try {
|
||||
TransactionBuilder builder = performInitialized("send command");
|
||||
TransactionBuilder builder = performInitialized("fetch activity data");
|
||||
builder.write(getCharacteristic(MiBandService.UUID_CHARACTERISTIC_CONTROL_POINT), fetch);
|
||||
builder.queue(getQueue());
|
||||
} catch (IOException ex) {
|
||||
LOG.error("Unable to fetch MI", ex);
|
||||
LOG.error("Unable to fetch MI activity data", ex);
|
||||
}
|
||||
// try {
|
||||
// TransactionBuilder builder = performInitialized("Read Activity data");
|
||||
// BluetoothGattCharacteristic characteristic = getCharacteristic(MiBandService.UUID_CHARACTERISTIC_ACTIVITY_DATA);
|
||||
// builder.read(characteristic).queue(getQueue());
|
||||
// } catch (IOException ex) {
|
||||
// LOG.error("Unable to read activity data from MI", ex);
|
||||
// }
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user