Commit 51ae4eb8 authored by deroo's avatar deroo
Browse files

page boundary better defined

parent 74734d23
......@@ -29,7 +29,7 @@ _flashAddr = (_NANO33BLE_FLASH_BASE + NRF_FICR->CODESIZE * NRF_FICR->CODEPAGESIZ
#else
#define _NANO33BLE_FLASH_DECR_ADDR(_bytesInArray) \
_flashAddr -= (_bytesInArray); \
_flashAddr &= ~(NRF_FICR->CODEPAGESIZE);
_flashAddr &= ~(NRF_FICR->CODEPAGESIZE-1);
#endif
// public macro: declare array in flash at highest flash addresses available
......
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