From 2345e0c48d4b84dcba9634397bc4853cd70d72a4 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 15 Jun 2012 20:54:42 +0200 Subject: [PATCH] hosted: disable USING_STORAGE_CALLBACK again 6b8330d was not the correct fix. In fact, it prevents settings from being written as there's no DISK_EVENT_SPINUP event, so they were only saved on proper shutdown. Change-Id: Iad26366f2821ed6adf445c391d461563c5782a71 --- firmware/export/ata_idle_notify.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h index a3fc4758b1..644df93851 100644 --- a/firmware/export/ata_idle_notify.h +++ b/firmware/export/ata_idle_notify.h @@ -46,7 +46,7 @@ enum { /* Enable storage callbacks everywhere except for bootloaders. Both * hosted and native targets need this. */ -#define USING_STORAGE_CALLBACK !defined(BOOTLOADER) +#define USING_STORAGE_CALLBACK !defined(BOOTLOADER) && !defined(APPLICATION) extern void register_storage_idle_func(void (*function)(void *data)); #if USING_STORAGE_CALLBACK