Skip to content

Commit

Permalink
fix sck typo wrong parameter
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 19, 2023
1 parent 2165db8 commit ecba08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stk500v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3408,7 +3408,7 @@ static int stk500v2_get_sck_period(const PROGRAMMER *pgm, double *v) {
unsigned char dur;
int rv = 0;

if ((rv = stk500v2_getparm(pgm, PARAM2_SCK_DURATION, &dur))< 0) {
if ((rv = stk500v2_getparm(pgm, PARAM_SCK_DURATION, &dur))< 0) {
pmsg_error("cannot obtain sck duration\n");
return rv;
}
Expand Down

0 comments on commit ecba08d

Please sign in to comment.