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

View File

@ -38,7 +38,7 @@
#error Unknown chip #error Unknown chip
#endif #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 #if BLUETOOTH_SD