summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/pitch_detector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c
index ed3ff64..431ddfb 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -420,6 +420,7 @@ static void set_min_freq(int new_freq)
settings.sample_size = (settings.sample_size + 3) & ~3;
}
+/* Displays the menu. Returns true iff the user selects 'quit'. */
static bool main_menu(void)
{
int selection = 0;
@@ -972,7 +973,7 @@ static void record_and_get_pitch(void)
case PLA_CANCEL:
rb->pcm_stop_recording();
- quit = main_menu() != 0;
+ quit = main_menu();
if(!quit)
{
redraw = true;