diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-05-13 18:56:38 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-05-13 19:14:56 +0200 |
commit | 6b8330d2166dc188ec464693bf9db03cf39e8567 (patch) | |
tree | 86e84e7981e39d7799adfeaab95f1a6ecbc74e66 | |
parent | 36d7f64555f09fb9e4d628e773dc321bf28783ba (diff) |
Enable USING_STORAGE_CALLBACK on hosted targets. Fixes config.cfg not written properly.
Change-Id: I3c87b41baae284b818be5c272d984d937ae0e350
-rw-r--r-- | firmware/export/ata_idle_notify.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h index 439b883e41..1577b2fb19 100644 --- a/firmware/export/ata_idle_notify.h +++ b/firmware/export/ata_idle_notify.h @@ -43,10 +43,10 @@ enum { DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1), }; -#define USING_STORAGE_CALLBACK (CONFIG_PLATFORM & PLATFORM_NATIVE) \ - && ! ((CONFIG_STORAGE & STORAGE_NAND) \ - && (CONFIG_NAND == NAND_IFP7XX)) \ - && !defined(BOOTLOADER) +#define USING_STORAGE_CALLBACK ((CONFIG_STORAGE & STORAGE_NAND) \ + && (CONFIG_NAND == NAND_IFP7XX)) \ + && !defined(BOOTLOADER) || \ + (CONFIG_PLATFORM & PLATFORM_HOSTED) extern void register_storage_idle_func(void (*function)(void *data)); #if USING_STORAGE_CALLBACK |