SHARE
TWEET

Untitled

a guest May 20th, 2012 40 Never
  1. diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h
  2. index 1577b2f..7afe4cf 100644
  3. --- a/firmware/export/ata_idle_notify.h
  4. +++ b/firmware/export/ata_idle_notify.h
  5. @@ -43,10 +43,11 @@ enum {
  6.      DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1),
  7.  };
  8.  
  9. -#define USING_STORAGE_CALLBACK  ((CONFIG_STORAGE & STORAGE_NAND) \
  10. -                                && (CONFIG_NAND == NAND_IFP7XX)) \
  11. -                                && !defined(BOOTLOADER) || \
  12. -                                (CONFIG_PLATFORM & PLATFORM_HOSTED)
  13. +#define USING_STORAGE_CALLBACK  ((CONFIG_PLATFORM & PLATFORM_NATIVE) \
  14. +                            && ! ((CONFIG_STORAGE & STORAGE_NAND) \
  15. +                               && (CONFIG_NAND == NAND_IFP7XX)) \
  16. +                            && !defined(BOOTLOADER)) || \
  17. +                            (CONFIG_PLATFORM & PLATFORM_HOSTED)
  18.  
  19.  extern void register_storage_idle_func(void (*function)(void *data));
  20.  #if USING_STORAGE_CALLBACK
RAW Paste Data
Top