mirror of https://github.com/rusefi/dfu_java.git
refactoring
This commit is contained in:
parent
d5af537144
commit
61810946e6
|
@ -30,7 +30,7 @@ public class DfuLogic {
|
|||
}
|
||||
logger.info(String.format("Erased up to %x", eraseAddress));
|
||||
|
||||
for (int offset = 0; offset < image.getImage().length; offset += device.getTransferSize()) {
|
||||
for (int offset = 0; offset < image.getImageSize(); offset += device.getTransferSize()) {
|
||||
DfuSeCommandSetAddress.execute(logger, device, device.getFlashRange().getBaseAddress() + offset);
|
||||
DfuConnectionUtil.waitStatus(logger, device);
|
||||
|
||||
|
|
Loading…
Reference in New Issue