summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 0146385..7e4e507 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -36,6 +36,7 @@
#include "mp3_playback.h"
#include "settings.h"
#include "ata.h"
+#include "ata_idle_notify.h"
#include "kernel.h"
#include "power.h"
#include "powermgmt.h"
@@ -554,6 +555,7 @@ bool settings_parseline(char* line, char** name, char** value)
static void system_flush(void)
{
+ call_ata_idle_notifys(false); /*doesnt work on usb and shutdown from ata thread */
tree_flush();
}
@@ -567,6 +569,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
#ifdef SIMULATOR
(void)callback;
(void)parameter;
+ call_ata_idle_notifys(false);
exit(0);
#else
int i;