1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +01: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 : // capability is a number containing :
// - the index of the "service" // - the index of the "service"
// - the real capability number // - the real capability number
if (expandCapabilities == null) {
LOG.debug("Expand capabilities is null");
return false;
}
if (which >= expandCapabilities.length * 8) { if (which >= expandCapabilities.length * 8) {
LOG.debug("Capability is not supported"); LOG.debug("Capability is not supported");
return false; return false;