summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 01463851be..7e4e5071a1 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -36,6 +36,7 @@
36#include "mp3_playback.h" 36#include "mp3_playback.h"
37#include "settings.h" 37#include "settings.h"
38#include "ata.h" 38#include "ata.h"
39#include "ata_idle_notify.h"
39#include "kernel.h" 40#include "kernel.h"
40#include "power.h" 41#include "power.h"
41#include "powermgmt.h" 42#include "powermgmt.h"
@@ -554,6 +555,7 @@ bool settings_parseline(char* line, char** name, char** value)
554 555
555static void system_flush(void) 556static void system_flush(void)
556{ 557{
558 call_ata_idle_notifys(false); /*doesnt work on usb and shutdown from ata thread */
557 tree_flush(); 559 tree_flush();
558} 560}
559 561
@@ -567,6 +569,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
567#ifdef SIMULATOR 569#ifdef SIMULATOR
568 (void)callback; 570 (void)callback;
569 (void)parameter; 571 (void)parameter;
572 call_ata_idle_notifys(false);
570 exit(0); 573 exit(0);
571#else 574#else
572 int i; 575 int i;