HAL_F4Light: fixed bug with DataFlash chips more than 128MBit

This commit is contained in:
night-ghost 2018-04-11 13:01:16 +05:00 committed by Andrew Tridgell
parent 740e322438
commit d1f2646394

View File

@ -1143,7 +1143,7 @@ static bool write_page(const uint8_t *ptr, uint32_t pageNum){
buf.cmd[i++] = JEDEC_PAGE_WRITE;
if(addr_4bit) {
buf.cmd[i++] = (PageAdr >> 16) & 0xff;
buf.cmd[i++] = (PageAdr >> 24) & 0xff;
}
buf.cmd[i++] = (PageAdr >> 16) & 0xff;
buf.cmd[i++] = (PageAdr >> 8) & 0xff;