From 41e5933877f9494c64007d2ee19e3d9eca744b49 Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Fri, 7 Jan 2011 20:21:37 +0000 Subject: [PATCH] pitch_detector: the menu function already returns a bool, so use the return value directly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28994 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/pitch_detector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c index ed3ff6413d..431ddfbcb4 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;