From 568e18e9ddca3741f80fb005fc006657c4b31edb Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 26 Dec 2006 22:01:27 +0000 Subject: 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 --- apps/recorder/radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 51e206fc4f..2fba14f7e2 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c @@ -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; -- cgit v1.2.3