Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: adb/contrib/high.py

Issue 2852603002: python-adb: List tz sensors in GetDeviceTemperatures() (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: adb/contrib/high.py
diff --git a/adb/contrib/high.py b/adb/contrib/high.py
index d5127c38dead4cc3f83a0fce574dc8f4563df2b9..d465c79a945190db243f1910777b2784e29d2c8c 100644
--- a/adb/contrib/high.py
+++ b/adb/contrib/high.py
@@ -638,7 +638,7 @@ class HighDevice(object):
# TODO(maruel): Support cold temperatures below 0°C.
continue
sensor_type = self.PullContent(path + '/type')
- if sensor_type and not sensor_type.startswith('tsens_tz_sensor'):
bpastene 2017/04/28 00:19:51 Would you happen to remember why they were ignored
M-A Ruel 2017/04/28 17:15:13 Yes. It was quite spammy but I don't recall exactl
bpastene 2017/04/29 00:24:08 Will do.
+ if sensor_type:
out[sensor_type.strip()] = value
# Filter out unnecessary stuff.
return out
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698