mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 06:22:55 +01:00
Mi Band 6: Revert find device to a call
It looks like 2df6ce2aed
does not work on the Mi Band 6, so let's revert
it to a normal call until we figure out what command is required.
This commit is contained in:
parent
b4b153c62d
commit
cc27409726
@ -27,6 +27,7 @@ import java.io.IOException;
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiFWHelper;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.miband6.MiBand6FWHelper;
|
||||
import nodomain.freeyourgadget.gadgetbridge.model.CallSpec;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.btle.TransactionBuilder;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.miband5.MiBand5Support;
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.operations.UpdateFirmwareOperation;
|
||||
@ -35,6 +36,14 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.operations.Upd
|
||||
public class MiBand6Support extends MiBand5Support {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(MiBand6Support.class);
|
||||
|
||||
@Override
|
||||
public void onFindDevice(boolean start) {
|
||||
final CallSpec callSpec = new CallSpec();
|
||||
callSpec.command = start ? CallSpec.CALL_INCOMING : CallSpec.CALL_END;
|
||||
callSpec.name = "Gadgetbridge";
|
||||
onSetCallState(callSpec);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UpdateFirmwareOperation createUpdateFirmwareOperation(Uri uri) {
|
||||
return new UpdateFirmwareOperation2020(uri, this);
|
||||
|
Loading…
Reference in New Issue
Block a user