Skip to content

Commit

Permalink
target/lpc546xx: mark cmd erase_sector as deprecated in favor of eras…
Browse files Browse the repository at this point in the history
…e_range
  • Loading branch information
perigoso authored and rg-silva committed Nov 11, 2024
1 parent 5627de9 commit 3576cdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/target/lpc546xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ static void lpc546xx_reset_attach(target_s *t)

static bool lpc546xx_cmd_erase_sector(target_s *t, int argc, const char **argv)
{
tc_printf(t, "This command is deprecated in favor of erase_range and may be removed in the future\n");

if (argc > 1) {
uint32_t sector_addr = strtoul(argv[1], NULL, 0);
sector_addr *= t->flash->blocksize;
Expand Down

0 comments on commit 3576cdf

Please sign in to comment.