summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Android.mk3
-rw-r--r--data.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 3ff920997..0f923a8cb 100644
--- a/Android.mk
+++ b/Android.mk
@@ -290,9 +290,6 @@ endif
ifneq ($(TW_CUSTOM_CPU_TEMP_PATH),)
LOCAL_CFLAGS += -DTW_CUSTOM_CPU_TEMP_PATH=$(TW_CUSTOM_CPU_TEMP_PATH)
endif
-ifneq ($(TW_NO_CPU_TEMP),)
- LOCAL_CFLAGS += -DTW_NO_CPU_TEMP=$(TW_NO_CPU_TEMP)
-endif
ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true)
LOCAL_SHARED_LIBRARIES += libopenaes
else
diff --git a/data.cpp b/data.cpp
index eb8b55341..52457df8f 100644
--- a/data.cpp
+++ b/data.cpp
@@ -891,6 +891,10 @@ int DataManager::GetMagicValue(const string varName, string& value)
}
else if (varName == "tw_cpu_temp")
{
+ int tw_no_cpu_temp;
+ GetValue("tw_no_cpu_temp", tw_no_cpu_temp);
+ if (tw_no_cpu_temp == 1) return -1;
+
string cpu_temp_file;
static unsigned long convert_temp = 0;
static time_t cpuSecCheck = 0;