summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/radio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 67306ac2b0..fa083f20f9 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -639,7 +639,6 @@ void radio_load_presets(void)
639 char *freq; 639 char *freq;
640 char *name; 640 char *name;
641 bool done = false; 641 bool done = false;
642 int i;
643 int f; 642 int f;
644 643
645 if(!presets_loaded) 644 if(!presets_loaded)
@@ -650,8 +649,7 @@ void radio_load_presets(void)
650 fd = open(default_filename, O_RDONLY); 649 fd = open(default_filename, O_RDONLY);
651 if(fd >= 0) 650 if(fd >= 0)
652 { 651 {
653 i = 0; 652 while(!done && num_presets < MAX_PRESETS)
654 while(!done && i < MAX_PRESETS)
655 { 653 {
656 rc = read_line(fd, buf, 128); 654 rc = read_line(fd, buf, 128);
657 if(rc > 0) 655 if(rc > 0)