diff options
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index 99bf668ec4..0afe735e53 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c | |||
@@ -854,7 +854,7 @@ void sd_enable(bool on) | |||
854 | extern int buttonlight_is_on; | 854 | extern int buttonlight_is_on; |
855 | #endif | 855 | #endif |
856 | 856 | ||
857 | #ifdef HAVE_HOTSWAP | 857 | #if defined(HAVE_HOTSWAP) && defined (HAVE_ADJUSTABLE_CPU_VOLTAGE) |
858 | static bool cpu_boosted = false; | 858 | static bool cpu_boosted = false; |
859 | #endif | 859 | #endif |
860 | 860 | ||
@@ -880,23 +880,24 @@ void sd_enable(bool on) | |||
880 | #endif /* HAVE_MULTIDRIVE */ | 880 | #endif /* HAVE_MULTIDRIVE */ |
881 | sd_enabled = true; | 881 | sd_enabled = true; |
882 | 882 | ||
883 | #ifdef HAVE_HOTSWAP | 883 | #if defined(HAVE_HOTSWAP) && defined (HAVE_ADJUSTABLE_CPU_VOLTAGE) |
884 | if(card_detect_target()) /* If SD card present Boost cpu for voltage */ | 884 | if(card_detect_target()) /* If SD card present Boost cpu for voltage */ |
885 | { | 885 | { |
886 | cpu_boosted = true; | 886 | cpu_boosted = true; |
887 | cpu_boost(true); | 887 | cpu_boost(true); |
888 | } | 888 | } |
889 | #endif | 889 | #endif /* defined(HAVE_HOTSWAP) && defined (HAVE_ADJUSTABLE_CPU_VOLTAGE) */ |
890 | } | 890 | } |
891 | else | 891 | else |
892 | { | 892 | { |
893 | #ifdef HAVE_HOTSWAP | 893 | #if defined(HAVE_HOTSWAP) && defined (HAVE_ADJUSTABLE_CPU_VOLTAGE) |
894 | if(cpu_boosted) | 894 | if(cpu_boosted) |
895 | { | 895 | { |
896 | cpu_boost(false); | 896 | cpu_boost(false); |
897 | cpu_boosted = false; | 897 | cpu_boosted = false; |
898 | } | 898 | } |
899 | #endif | 899 | #endif /* defined(HAVE_HOTSWAP) && defined (HAVE_ADJUSTABLE_CPU_VOLTAGE) */ |
900 | |||
900 | sd_enabled = false; | 901 | sd_enabled = false; |
901 | 902 | ||
902 | #ifdef HAVE_MULTIDRIVE | 903 | #ifdef HAVE_MULTIDRIVE |