last arg of copyOfRange() is index, not length!
This commit is contained in:
parent
f7b71c1f96
commit
275839a7f4
|
@ -60,10 +60,8 @@ public abstract class AbstractMiFirmwareInfo {
|
||||||
|
|
||||||
public abstract boolean isGenerallyCompatibleWith(GBDevice device);
|
public abstract boolean isGenerallyCompatibleWith(GBDevice device);
|
||||||
|
|
||||||
public
|
public @NonNull byte[] getFirmwareBytes() {
|
||||||
@NonNull
|
return Arrays.copyOfRange(wholeFirmwareBytes, getFirmwareOffset(), getFirmwareOffset() + getFirmwareLength());
|
||||||
byte[] getFirmwareBytes() {
|
|
||||||
return Arrays.copyOfRange(wholeFirmwareBytes, getFirmwareOffset(), getFirmwareLength());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getFirmwareVersionMajor() {
|
public int getFirmwareVersionMajor() {
|
||||||
|
|
Loading…
Reference in New Issue