1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-29 12:05:53 +01:00

HPlus: Handle SW Version message from Zeband Plus

This commit is contained in:
João Paulo Barraca 2017-05-04 13:46:36 +01:00
parent b475fd2dc7
commit 497f9a6658

View File

@ -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 {