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
This commit is contained in:
parent
42ad21ab53
commit
41e5933877
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue