summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorAgontuk <rifat662@gmail.com>2015-04-22 10:42:59 +0200
committerDees Troy <dees_troy@teamw.in>2015-06-01 02:56:19 +0200
commita29361a8e6c20189c6918e1f2a749102845e3145 (patch)
treef195a9a6ee0aa18d156c160208132ddbacd66d52 /data.cpp
parentFix unable to uncheck the mount read only check box (diff)
downloadandroid_bootable_recovery-a29361a8e6c20189c6918e1f2a749102845e3145.tar
android_bootable_recovery-a29361a8e6c20189c6918e1f2a749102845e3145.tar.gz
android_bootable_recovery-a29361a8e6c20189c6918e1f2a749102845e3145.tar.bz2
android_bootable_recovery-a29361a8e6c20189c6918e1f2a749102845e3145.tar.lz
android_bootable_recovery-a29361a8e6c20189c6918e1f2a749102845e3145.tar.xz
android_bootable_recovery-a29361a8e6c20189c6918e1f2a749102845e3145.tar.zst
android_bootable_recovery-a29361a8e6c20189c6918e1f2a749102845e3145.zip
Diffstat (limited to 'data.cpp')
-rw-r--r--data.cpp4
1 files changed, 4 insertions, 0 deletions
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;