From 1710bf254756d49355e9156ba1907545addfb319 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Thu, 2 Oct 2014 20:22:21 -0400 Subject: display cpu temperature in twrp use TW_NO_CPU_TEMP := true to disable display use TW_CPU_CUSTOM_PATH := path to set custom path Change-Id: Id260ecbb4ec36a78442387329944f67003d0f6a0 --- twrp-functions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'twrp-functions.cpp') diff --git a/twrp-functions.cpp b/twrp-functions.cpp index cd8700f8f..89714dd7d 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -1289,4 +1289,10 @@ void TWFunc::SetPerformanceMode(bool mode) { usleep(500000); } +std::string TWFunc::to_string(unsigned long value) { + std::ostringstream os; + os << value; + return os.str(); +} + #endif // ndef BUILD_TWRPTAR_MAIN -- cgit v1.2.3