summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r--apps/recorder/radio.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 6b056dfe31..c163cc4552 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -167,6 +167,10 @@ static void remember_frequency(void)
167 167
168bool radio_screen(void) 168bool radio_screen(void)
169{ 169{
170#ifndef HAVE_RECORDER_KEYPAD
171 splash(HZ*2, true, "Radio not supported yet");
172 return false;
173#else
170 char buf[MAX_PATH]; 174 char buf[MAX_PATH];
171 bool done = false; 175 bool done = false;
172 int button; 176 int button;
@@ -554,6 +558,7 @@ bool radio_screen(void)
554 } 558 }
555#endif 559#endif
556 return have_recorded; 560 return have_recorded;
561#endif /* ONDIO */
557} 562}
558 563
559void radio_save_presets(void) 564void radio_save_presets(void)
@@ -663,12 +668,14 @@ static bool radio_add_preset(void)
663static int handle_radio_presets_menu_cb(int key, int m) 668static int handle_radio_presets_menu_cb(int key, int m)
664{ 669{
665 (void)m; 670 (void)m;
671#ifdef HAVE_RECORDER_KEYPAD
666 switch(key) 672 switch(key)
667 { 673 {
668 case BUTTON_F3: 674 case BUTTON_F3:
669 key = BUTTON_LEFT; /* Fake an exit */ 675 key = BUTTON_LEFT; /* Fake an exit */
670 break; 676 break;
671 } 677 }
678#endif
672 return key; 679 return key;
673} 680}
674 681
@@ -725,6 +732,11 @@ bool handle_radio_presets_menu(void)
725 732
726int handle_radio_presets_cb(int key, int m) 733int handle_radio_presets_cb(int key, int m)
727{ 734{
735#ifdef HAVE_ONDIO_KEYPAD
736 (void)key;
737 (void)m;
738 return BUTTON_NONE;
739#else
728 bool ret; 740 bool ret;
729 741
730 switch(key) 742 switch(key)
@@ -750,6 +762,7 @@ int handle_radio_presets_cb(int key, int m)
750 break; 762 break;
751 } 763 }
752 return key; 764 return key;
765#endif
753} 766}
754 767
755bool handle_radio_presets(void) 768bool handle_radio_presets(void)