diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-10-07 19:37:33 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-10-07 19:37:33 +0000 |
commit | 46573019a53dca411f754d40d0f21c1e4eafaedf (patch) | |
tree | fa2f3baf19b8bc7ed25b709c7dda76272e85a57c /apps/plugins/jpeg.c | |
parent | 23b7e957708ff7272ed10cbeae24cf9fd7d7ad65 (diff) | |
download | rockbox-46573019a53dca411f754d40d0f21c1e4eafaedf.tar.gz rockbox-46573019a53dca411f754d40d0f21c1e4eafaedf.zip |
add HAVE_DISK_STORAGE, and use that instead of HAVE_FLASH_STORAGE when checking for an actual disk (i.e. related to spindown, skipping,...)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18735 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/jpeg.c')
-rw-r--r-- | apps/plugins/jpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index b43dee5d74..397fab7bd6 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c | |||
@@ -2633,7 +2633,7 @@ int show_menu(void) /* return 1 to quit */ | |||
2633 | break; | 2633 | break; |
2634 | } | 2634 | } |
2635 | 2635 | ||
2636 | #if !defined(SIMULATOR) && !defined(HAVE_FLASH_STORAGE) | 2636 | #if !defined(SIMULATOR) && defined(HAVE_DISK_STORAGE) |
2637 | /* change ata spindown time based on slideshow time setting */ | 2637 | /* change ata spindown time based on slideshow time setting */ |
2638 | immediate_ata_off = false; | 2638 | immediate_ata_off = false; |
2639 | rb->ata_spindown(rb->global_settings->disk_spindown); | 2639 | rb->ata_spindown(rb->global_settings->disk_spindown); |
@@ -3412,7 +3412,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
3412 | ARRAYLEN(jpeg_config), JPEG_SETTINGS_VERSION); | 3412 | ARRAYLEN(jpeg_config), JPEG_SETTINGS_VERSION); |
3413 | } | 3413 | } |
3414 | 3414 | ||
3415 | #if !defined(SIMULATOR) && !defined(HAVE_FLASH_STORAGE) | 3415 | #if !defined(SIMULATOR) && defined(HAVE_DISK_STORAGE) |
3416 | /* set back ata spindown time in case we changed it */ | 3416 | /* set back ata spindown time in case we changed it */ |
3417 | rb->ata_spindown(rb->global_settings->disk_spindown); | 3417 | rb->ata_spindown(rb->global_settings->disk_spindown); |
3418 | #endif | 3418 | #endif |