OSDN Git Service

Add main/shim/dumpsys::supervision_timeout_to_seconds
authorChris Manton <cmanton@google.com>
Thu, 7 Jan 2021 22:50:02 +0000 (14:50 -0800)
committerChris Manton <cmanton@google.com>
Tue, 12 Jan 2021 16:43:17 +0000 (08:43 -0800)
Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: Icd73d874a7143efdf33383ad3b096305c21d98b8

main/shim/dumpsys.h

index 26e3f21..c2788f2 100644 (file)
@@ -40,6 +40,10 @@ inline double ticks_to_seconds(uint16_t ticks) {
   return (static_cast<double>(ticks) * 0.625 * 0.001);
 }
 
+inline double supervision_timeout_to_seconds(uint16_t timeout) {
+  return (static_cast<double>(timeout) * 0.01);
+}
+
 namespace bluetooth {
 namespace shim {