Skip to content

Commit a49dc0b

Browse files
authored
Fix detection of unknown flash-size when saving (#17)
1 parent 8d4b1d3 commit a49dc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ void save_command::execute(device_map &devices) {
16151615
}
16161616
} else {
16171617
end = FLASH_START + guess_flash_size(raw_access);
1618-
if (end == 0) {
1618+
if (end <= FLASH_START) {
16191619
fail(ERROR_NOT_POSSIBLE, "Cannot determine the flash size, so cannot save the entirety of flash, try --range.");
16201620
}
16211621
}

0 commit comments

Comments
 (0)