mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
HPlus: Handle SW Version message from Zeband Plus
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user