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) {
|
public boolean processVersion(byte[] data) {
|
||||||
int major, minor;
|
int major, minor;
|
||||||
|
|
||||||
if(data.length == 11){
|
if(data.length >= 11){
|
||||||
major = data[10] & 0xFF;
|
major = data[10] & 0xFF;
|
||||||
minor = data[9] & 0xFF;
|
minor = data[9] & 0xFF;
|
||||||
}else {
|
}else {
|
||||||
|
|
Loading…
Reference in New Issue