Commit 4bb16d59 authored by Benoit Rat's avatar Benoit Rat Committed by Alessandro Rubini

usb-loader: fix DF bug when high pageNumber. i,e, new DF AT45DB641E

parent e0a0ad80
......@@ -172,7 +172,7 @@ unsigned char AT45_SendCommand(
dfAddress = address;
}
// Write address bytes
if (pDesc->pageNumber >= 16384) {
if (pDesc->pageNumber >= 16777216) {
pAt45->pCmdBuffer[1] = ((dfAddress & 0x0F000000) >> 24);
pAt45->pCmdBuffer[2] = ((dfAddress & 0x00FF0000) >> 16);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment