1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 14:52:25 +02:00

[Huawei] Fix BondParamsRequest stopChain

This commit is contained in:
Damien 'Psolyca' Gaignon 2024-02-08 11:25:11 +01:00
parent 510b8096ed
commit 21b97a9276
No known key found for this signature in database
GPG Key ID: 9E9404E5D9E11843

View File

@ -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) {
stopChain(this);
if (paramsProvider.getDeviceSupportType() != 0x02) {
if (((DeviceConfig.BondParams.Response) receivedPacket).status == 1) {
stopChain(this);
}
}
}
}