update stk500v1 sck display

Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
This commit is contained in:
Martin
2023-11-22 18:39:00 +01:00
parent 2ec638f94b
commit b438ba5233

View File

@@ -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;
}