mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
HPlus: Handle SW Version message from Zeband Plus
This commit is contained in:
parent
b475fd2dc7
commit
497f9a6658
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user