From: DL1YCF Date: Thu, 3 Jun 2021 09:59:48 +0000 (+0200) Subject: ext.c: correcte vfo step size change X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/provisioning?a=commitdiff_plain;h=59c72c30830061f22724847e35ef379f2845ca63;p=pihpsdr.git ext.c: correcte vfo 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];