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:
parent
6f83fc815f
commit
b242ad1ec5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user