Revert "flash: at91samd: fix use of is_erased in check" · arduino/OpenOCD@d4b7679 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit d4b7679
Revert "flash: at91samd: fix use of is_erased in check"
This reverts commit 08607ae.
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -606,7 +606,7 @@ static int samd_erase(struct flash_bank *bank, int first, int last) | ||
606 | 606 | return ERROR_FLASH_OPERATION_FAILED; |
607 | 607 | } |
608 | 608 | |
609 | -if (bank->sectors[s].is_erased != 1) { | |
609 | +if (!bank->sectors[s].is_erased) { | |
610 | 610 | /* For each row in that sector */ |
611 | 611 | for (int r = s * rows_in_sector; r < (s + 1) * rows_in_sector; r++) { |
612 | 612 | res = samd_erase_row(bank->target, r * chip->page_size * 4); |