1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 22:11:53 +02:00

ubb-la/gui.c (pos_step): step one sample at maximum zoom

This permits precise interval/frequency calculation with the user-defined
reference.
This commit is contained in:
Werner Almesberger 2013-02-01 00:35:16 -03:00
parent b99c81409f
commit 9cc032816e

View File

@ -466,7 +466,7 @@ static void show_divisions(void)
static int pos_step(int zoom) static int pos_step(int zoom)
{ {
return 1 << (MAX_ZOOM-zoom+1); return zoom == MAX_ZOOM ? 1 : 1 << (MAX_ZOOM-zoom+1);
} }