Skip to content

Commit c0dbdd4

Browse files
committed
boot/zephyr: make flash_area_erased_val() weak
The function was made week so zephyr-rtos implementation will be used if available. Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent 9bd1a3d commit c0dbdd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/flash_map_extended.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int flash_area_sector_from_off(off_t off, struct flash_sector *sector)
110110
}
111111

112112
#define ERASED_VAL 0xff
113-
uint8_t flash_area_erased_val(const struct flash_area *fap)
113+
__weak uint8_t flash_area_erased_val(const struct flash_area *fap)
114114
{
115115
(void)fap;
116116
return ERASED_VAL;

0 commit comments

Comments
 (0)