Skip to content

Commit

Permalink
Fixed compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightwalker-87 committed Dec 23, 2023
1 parent a60c24c commit 5613f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stlink-lib/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ uint32_t stlink_calculate_pagesize(stlink_t *sl, uint32_t flashaddr) {
}
} else if (sl->chip_id == STM32_CHIPID_F7 ||
sl->chip_id == STM32_CHIPID_F76xxx) {
uint32_t sector = calculate_F7_sectornum(sl, flashaddr);
uint32_t sector = calculate_F7_sectornum(flashaddr);

if (sector < 4) {
sl->flash_pgsz = 0x8000;
Expand Down

0 comments on commit 5613f28

Please sign in to comment.