mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-30 04:49:14 +03:00
update stk500v1 sck display
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
This commit is contained in:
@@ -1308,7 +1308,7 @@ static int stk500_get_fosc(const PROGRAMMER *pgm, double *v) {
|
||||
return rc;
|
||||
|
||||
if (prescale) {
|
||||
fosc = STK500_XTAL / ((cmatch + 1) * 2 * ps[prescale - 1]);
|
||||
fosc = PDATA(pgm)->xtal / ((cmatch + 1) * 2 * ps[prescale - 1]);
|
||||
} else
|
||||
fosc = 0;
|
||||
*v = fosc;
|
||||
@@ -1353,7 +1353,7 @@ static int stk500_get_sck_period(const PROGRAMMER *pgm, double *v) {
|
||||
pmsg_error("cannot obtain sck duration\n");
|
||||
return rv;
|
||||
}
|
||||
*v = dur * 8.0 / STK500_XTAL;
|
||||
*v = dur * 8.0 / PDATA(pgm)->xtal;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user