lastfm_scrobbler fix yellow for targets w/o storage callback

Change-Id: I0a3dbcf8c8c0c72efa2506d1998fd24d228ed91d
This commit is contained in:
William Wilgus 2022-03-26 11:12:19 -04:00
parent 053c1596d8
commit 593d9f623d

View file

@ -33,7 +33,6 @@ http://www.audioscrobbler.net/wiki/Portable_Player_Logging
#define logf(...) do { } while(0) #define logf(...) do { } while(0)
#endif #endif
/****************** constants ******************/ /****************** constants ******************/
#define EV_EXIT MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFF) #define EV_EXIT MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFF)
#define EV_OTHINSTANCE MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFE) #define EV_OTHINSTANCE MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFE)
@ -299,6 +298,7 @@ static void scrobbler_write_cache(void)
gCache.pos = 0; gCache.pos = 0;
} }
#if USING_STORAGE_CALLBACK
static void scrobbler_flush_callback(void) static void scrobbler_flush_callback(void)
{ {
(void) gCache.force_flush; (void) gCache.force_flush;
@ -315,6 +315,7 @@ static void scrobbler_flush_callback(void)
scrobbler_write_cache(); scrobbler_write_cache();
} }
} }
#endif
static void scrobbler_add_to_cache(const struct mp3entry *id) static void scrobbler_add_to_cache(const struct mp3entry *id)
{ {