1
0
Fork 0
forked from len0rd/rockbox

Fix FS#6361. Allow the FM auto-scanning to be abort with the standard

quit button


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11843 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2006-12-26 22:01:27 +00:00
parent be3f29cc11
commit 568e18e9dd

View file

@ -1415,7 +1415,7 @@ static bool scan_presets(void)
memset(presets, 0, sizeof(presets));
while(curr_freq <= fm_region[global_settings.fm_region].freq_max)
{
if (num_presets >= MAX_PRESETS)
if (num_presets >= MAX_PRESETS || action_userabort(TIMEOUT_NOBLOCK))
break;
freq = curr_freq / 10000;