From 497f9a66583d36c3b4943c3215d652839fd69947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Paulo=20Barraca?= Date: Thu, 4 May 2017 13:46:36 +0100 Subject: [PATCH] HPlus: Handle SW Version message from Zeband Plus --- .../gadgetbridge/service/devices/hplus/HPlusHandlerThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/hplus/HPlusHandlerThread.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/hplus/HPlusHandlerThread.java index ab0f6ab4a..59dcb25de 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/hplus/HPlusHandlerThread.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/hplus/HPlusHandlerThread.java @@ -498,7 +498,7 @@ class HPlusHandlerThread extends GBDeviceIoThread { public boolean processVersion(byte[] data) { int major, minor; - if(data.length == 11){ + if(data.length >= 11){ major = data[10] & 0xFF; minor = data[9] & 0xFF; }else {