From: DL1YCF Date: Thu, 3 Jun 2021 09:59:10 +0000 (+0200) Subject: ext.c: corrected step size change X-Git-Url: https://git.rkrishnan.org/listings/vdrive/index.php?a=commitdiff_plain;h=bddbe4cde399ba4764a6f4d526492cb7c00f5400;p=pihpsdr.git ext.c: corrected step size change --- diff --git a/ext.c b/ext.c index f0b798b..3370fa8 100644 --- a/ext.c +++ b/ext.c @@ -206,7 +206,7 @@ void update_vfo_step(int direction) { } else { i--; } - if (i >= STEPS) i=STEPS; + if (i >= STEPS) i=STEPS-1; if (i < 0 ) i=0; step=steps[i];