mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-16 19:13:09 +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:
parent
b99c81409f
commit
9cc032816e
@ -466,7 +466,7 @@ static void show_divisions(void)
|
||||
|
||||
static int pos_step(int zoom)
|
||||
{
|
||||
return 1 << (MAX_ZOOM-zoom+1);
|
||||
return zoom == MAX_ZOOM ? 1 : 1 << (MAX_ZOOM-zoom+1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user