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

This commit is contained in:
Ayke van Laethem 2018-07-22 20:11:32 +02:00 committed by Damien George
parent 6a31dcd638
commit 7067ac3573
1 changed files with 1 additions and 1 deletions

View File

@ -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