Skip to content

Commit

Permalink
stk500v1: add option -B handling identical to stk500v2
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
  • Loading branch information
Ho-Ro committed Nov 12, 2023
1 parent 4f0ac16 commit 373e2e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stk500.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,11 @@ static int stk500_open(PROGRAMMER *pgm, const char *port) {
if (stk500_getsync(pgm) < 0)
return -1;

if (pgm->bitclock != 0.0) {
if (pgm->set_sck_period(pgm, pgm->bitclock) != 0)
return -1;
}

return 0;
}

Expand Down

0 comments on commit 373e2e0

Please sign in to comment.