Skip to content

Commit

Permalink
Merge pull request #1147 from Ant-ON/h7_db_fix
Browse files Browse the repository at this point in the history
Fixed clearance of the H7 dual bank flag
  • Loading branch information
Nightwalker-87 authored Jun 3, 2021
2 parents f885091 + 4949c23 commit 15bc572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ int stlink_load_device_params(stlink_t *sl) {
// H7 devices with small flash has one bank
if (sl->chip_flags & CHIP_F_HAS_DUAL_BANK &&
sl->flash_type == STLINK_FLASH_TYPE_H7) {
if ((flash_size / sl->flash_pgsz) <= 1)
if ((sl->flash_size / sl->flash_pgsz) <= 1)
sl->chip_flags &= ~CHIP_F_HAS_DUAL_BANK;
}

Expand Down

0 comments on commit 15bc572

Please sign in to comment.