From c13f21a4d5c27c638c9f0dedf6d7b1f9bbb4d682 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 16 Aug 2013 21:55:09 +0200 Subject: Fix logdisk The code was broken in a subtle but crucial way: storage idle callbacks are oneshot so after the first flush everything would stay in the buffer forever and would never be written to the disk thus resulting into many events being lost. This changed correctly registers the idle callback each time the buffer is not empty. Note that the idle storage code checks if a callback has is in the queue already so we don't register twice. Change-Id: Ifdf331d4b757e05b8a6902bf5926cbc7689f5109 --- apps/main.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index 7333f7dc8d..7dc61754d3 100644 --- a/apps/main.c +++ b/apps/main.c @@ -489,10 +489,6 @@ static void init(void) #endif #endif -#ifdef ROCKBOX_HAS_LOGDISKF - init_logdiskf(); -#endif - #if CONFIG_RTC rtc_init(); #endif -- cgit v1.2.3