diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 643f5be542..3cb270dafe 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -36,7 +36,9 @@ #include "powermgmt.h" #include "rtc.h" #include "ata.h" +#ifdef HAVE_LCD_BITMAP #include "peakmeter.h" +#endif #include "lang.h" static bool contrast(void) diff --git a/apps/wps-display.c b/apps/wps-display.c index a8980855e4..c64a1aa7dd 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c @@ -527,7 +527,7 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_all) struct format_flags flags; bool scroll_active = false; int i; - +#ifdef HAVE_LCD_BITMAP /* to find out wether the peak meter is enabled we assume it wasn't until we find a line that contains the peak meter. We can't use peak_meter_enabled itself @@ -536,7 +536,7 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_all) or sleep is called but who knows...) */ bool enable_pm = false; - +#endif if (!id3) { lcd_stop_scroll(); @@ -611,10 +611,11 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_all) } } } - +#ifdef HAVE_LCD_BITMAP /* Now we know wether the peak meter is used. So we can enable / disable the peak meter thread */ peak_meter_enabled = enable_pm; +#endif lcd_update(); return true;