1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-10-06 13:20:30 +02:00

Huawei: Expand capabilities fix

This commit is contained in:
Martin.JM 2024-08-01 21:06:13 +02:00
parent 6f83fc815f
commit b242ad1ec5

View File

@ -175,6 +175,10 @@ public class HuaweiCoordinator {
// capability is a number containing :
// - the index of the "service"
// - the real capability number
if (expandCapabilities == null) {
LOG.debug("Expand capabilities is null");
return false;
}
if (which >= expandCapabilities.length * 8) {
LOG.debug("Capability is not supported");
return false;