Index: apps/plugins/metronome.c =================================================================== --- apps/plugins/metronome.c (revision 19934) +++ apps/plugins/metronome.c (working copy) @@ -623,7 +623,7 @@ METRONOME_PAUSE, #endif /* ONDIO_PAD */ #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) - METRONOME_SYNC + METRONOME_SYNC #endif /* IRIVER_H100_PAD||IRIVER_H300_PAD */ }; @@ -632,7 +632,7 @@ #define METRONOME_TAP PLA_START #define METRONOME_MSG_START "start: mode" #define METRONOME_MSG_STOP "pause: hold mode" -static const struct button_mapping ondio_action[] = +static const struct button_mapping ondio_action[] = { {METRONOME_PLAY_TAP, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, {METRONOME_PAUSE, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE }, @@ -641,9 +641,14 @@ #else /* !ONDIO_PAD */ #define METRONOME_TAP PLA_FIRE #define METRONOME_PLAYPAUSE PLA_START -#define METRONOME_MSG_START "press play" -#define METRONOME_MSG_STOP "press pause" +#define METRONOME_MSG_START "Press play" +#define METRONOME_MSG_STOP "Press pause" +/* SANSA_C200_PAD doesn't have a PLA_START */ +#if CONFIG_KEYPAD == SANSA_C200_PAD +#define METRONOME_PLAYPAUSE PLA_UP +#endif + #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) #define MET_SYNC static const struct button_mapping iriver_syncaction[] = @@ -701,7 +706,7 @@ sound_active = true; rb->led(1); rb->mp3_play_data(sound, sizeof(sound), callback); - rb->mp3_play_pause(true); /* kickoff audio */ + rb->mp3_play_pause(true); /* kickoff audio */ } #else /* CONFIG_CODEC == SWCODEC */ @@ -741,7 +746,7 @@ { display->clear_display(); -#ifdef HAVE_LCD_BITMAP +#ifdef HAVE_LCD_BITMAP display->setfont(FONT_SYSFIXED); display->puts(0, 0, "Metronome"); if(display->screen_type==SCREEN_MAIN) @@ -818,7 +823,7 @@ else if (bpm_step_counter < 60) bpm = bpm + direction * 2; else - bpm = bpm + direction * 9; + bpm = bpm + direction * 9; if (bpm > 400) bpm = 400; if (bpm < 1) bpm = 1; @@ -865,7 +870,7 @@ { if (tap_count == 0 || tap_time < tap_count) { tap_time = 0; - } + } else { if (tap_time > 0) { bpm = 61440/(tap_time/tap_count);