From 593d9f623da5cdc920bf8893d609a0c5bb3fb7d2 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 26 Mar 2022 11:12:19 -0400 Subject: [PATCH] lastfm_scrobbler fix yellow for targets w/o storage callback Change-Id: I0a3dbcf8c8c0c72efa2506d1998fd24d228ed91d --- apps/plugins/lastfm_scrobbler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/plugins/lastfm_scrobbler.c b/apps/plugins/lastfm_scrobbler.c index 7ac620c2f0..4beef53913 100644 --- a/apps/plugins/lastfm_scrobbler.c +++ b/apps/plugins/lastfm_scrobbler.c @@ -33,7 +33,6 @@ http://www.audioscrobbler.net/wiki/Portable_Player_Logging #define logf(...) do { } while(0) #endif - /****************** constants ******************/ #define EV_EXIT MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFF) #define EV_OTHINSTANCE MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFE) @@ -299,6 +298,7 @@ static void scrobbler_write_cache(void) gCache.pos = 0; } +#if USING_STORAGE_CALLBACK static void scrobbler_flush_callback(void) { (void) gCache.force_flush; @@ -315,6 +315,7 @@ static void scrobbler_flush_callback(void) scrobbler_write_cache(); } } +#endif static void scrobbler_add_to_cache(const struct mp3entry *id) {