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:
parent
be3f29cc11
commit
568e18e9dd
1 changed files with 1 additions and 1 deletions
|
|
@ -1415,7 +1415,7 @@ static bool scan_presets(void)
|
||||||
memset(presets, 0, sizeof(presets));
|
memset(presets, 0, sizeof(presets));
|
||||||
while(curr_freq <= fm_region[global_settings.fm_region].freq_max)
|
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;
|
break;
|
||||||
|
|
||||||
freq = curr_freq / 10000;
|
freq = curr_freq / 10000;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue