diff --git a/src/arduino.c b/src/arduino.c index 73a0bd70..ae75be09 100644 --- a/src/arduino.c +++ b/src/arduino.c @@ -45,7 +45,7 @@ static int arduino_parseextparms(const PROGRAMMER *pgm, const LISTID extparms) { for (LNODEID ln = lfirst(extparms); ln; ln = lnext(ln)) { extended_param = ldata(ln); - if (sscanf(extended_param, "attempts=%2d", &attempts) == 1) { + if (sscanf(extended_param, "attempts=%i", &attempts) == 1) { PDATA(pgm)->retry_attempts = attempts; pmsg_info("setting number of retry attempts to %d\n", attempts); continue; diff --git a/src/stk500.c b/src/stk500.c index a7c5657e..47418ec4 100644 --- a/src/stk500.c +++ b/src/stk500.c @@ -650,7 +650,7 @@ static int stk500_parseextparms(const PROGRAMMER *pgm, const LISTID extparms) for (ln = lfirst(extparms); ln; ln = lnext(ln)) { extended_param = ldata(ln); - if (sscanf(extended_param, "attempts=%2d", &attempts) == 1) { + if (sscanf(extended_param, "attempts=%i", &attempts) == 1) { PDATA(pgm)->retry_attempts = attempts; pmsg_info("setting number of retry attempts to %d\n", attempts); continue;