mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Huawei: Expand capabilities fix
This commit is contained in:
+4
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user