Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flash_erase bank selection logic
Which bank a page lies in depends whether there are 2 banks. If there are 2 banks, the flash page size is cut in half and there are now double the pages. Half the pages in bank1, half in bank2. Therefore, write the BKER bit based on the half_npages.
- Loading branch information