Skip to content

Commit 48a60c5

Browse files
ABOSTMgalak
authored andcommitted
drivers: flash: stm32h7: compilation issue. Fix typo
REAL_FLASH_SIZE renamed to REAL_FLASH_SIZE_KB Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 0b6e77d commit 48a60c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/flash/flash_stm32h7x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ void flash_stm32_page_layout(const struct device *dev,
578578

579579
if (stm32h7_flash_layout[0].pages_count == 0) {
580580
stm32h7_flash_layout[0].pages_count =
581-
REAL_FLASH_SIZE / FLASH_SECTOR_SIZE;
581+
REAL_FLASH_SIZE_KB / FLASH_SECTOR_SIZE;
582582
stm32h7_flash_layout[0].pages_size = FLASH_SECTOR_SIZE;
583583
}
584584
*layout_size = ARRAY_SIZE(stm32h7_flash_layout);

0 commit comments

Comments
 (0)