mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 09:01:55 +01:00
[Huawei] Fix BondParamsRequest stopChain
This commit is contained in:
parent
510b8096ed
commit
21b97a9276
@ -55,9 +55,10 @@ public class GetBondParamsRequest extends Request {
|
||||
throw new ResponseTypeMismatchException(receivedPacket, DeviceConfig.BondParams.Response.class);
|
||||
|
||||
paramsProvider.setEncryptionCounter(((DeviceConfig.BondParams.Response) receivedPacket).encryptionCounter);
|
||||
int status = ((DeviceConfig.BondParams.Response) receivedPacket).status;
|
||||
if (status == 1) {
|
||||
if (paramsProvider.getDeviceSupportType() != 0x02) {
|
||||
if (((DeviceConfig.BondParams.Response) receivedPacket).status == 1) {
|
||||
stopChain(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user