diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-06-26 12:15:40 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-06-26 12:15:40 +0000 |
commit | a26b153ec999de3168708ef00e3f93cd9d85cce9 (patch) | |
tree | 8ec444aa38dbab969a63dd3057878e6f9972217b | |
parent | 1a3a78863b005af4173a94afa1647ddc92597d4f (diff) |
Made the FM frequency setting wrap around
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6869 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/recorder/radio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 5dbe9478d6..4961212178 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c @@ -324,7 +324,7 @@ bool radio_screen(void) case BUTTON_LEFT: curr_freq -= FREQ_STEP; if(curr_freq < MIN_FREQ) - curr_freq = MIN_FREQ; + curr_freq = MAX_FREQ; radio_set(RADIO_FREQUENCY, curr_freq); curr_preset = find_preset(curr_freq); @@ -336,7 +336,7 @@ bool radio_screen(void) case BUTTON_RIGHT: curr_freq += FREQ_STEP; if(curr_freq > MAX_FREQ) - curr_freq = MAX_FREQ; + curr_freq = MIN_FREQ; radio_set(RADIO_FREQUENCY, curr_freq); curr_preset = find_preset(curr_freq); |