Skip to content
Snippets Groups Projects
Commit 7067ac35 authored by Ayke van Laethem's avatar Ayke van Laethem Committed by Damien George
Browse files

nrf/drivers/flash: Fix incorrect page alignment check.

parent 6a31dcd6
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@
#error Unknown chip
#endif
#define FLASH_IS_PAGE_ALIGNED(addr) ((uint32_t)(addr) & (FLASH_PAGESIZE - 1))
#define FLASH_IS_PAGE_ALIGNED(addr) (((uint32_t)(addr) & (FLASH_PAGESIZE - 1)) == 0)
#if BLUETOOTH_SD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment